예제 #1
0
 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);
}