static bool from_memory(allocation_transaction &transaction, const char *memory, size_t size, magic<Type, Magic> *ptr, Params... p)
 {
   return from_memory(transaction, memory, size, reinterpret_cast<Type *>(ptr), std::forward<Params>(p)...);
 }
示例#2
0
文件: json.hpp 项目: bkentel/bkrl
//==============================================================================
//!
//==============================================================================
inline json11::Json from_file(path_string_ref const filename) {
    auto const data = read_file(filename);
    return from_memory(data);
}