Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何从存档中获取文件名字符串,在序列化函数或任何其他具有template<class archive>语法的函数中。
template<class archive>
谢谢!=)
没有可移植的方式来做你所要求的。归档概念不需要使用文件,甚至不需要使用 C++ iostream 派生类。所有的库归档类型都使用 iostream,但即使是那些也不必是文件流。
当然,您可以创建自己的存档类型。一种专门用于文件。可能从现有的派生,将参数传递给基类。它将有一个额外的函数来获取用于创建它的文件的名称。
进入tinymce并保留格式?