diff --git a/src/io/json.cpp b/src/io/json.cpp index d4d488a..37f349b 100644 --- a/src/io/json.cpp +++ b/src/io/json.cpp @@ -6,6 +6,8 @@ #include #include //#include +#include +#include namespace fc { @@ -585,8 +587,10 @@ namespace fc } variant json::from_file( const fc::path& p ) { - auto tmp = std::make_shared( p, ifstream::binary ); - buffered_istream bi( tmp ); + //auto tmp = std::make_shared( p, ifstream::binary ); + //auto tmp = std::make_shared( p.generic_string().c_str(), std::ios::binary ); + //buffered_istream bi( tmp ); + std::ifstream bi( p.generic_string().c_str(), std::ios::binary ); return variant_from_stream( bi ); } variant json::from_stream( buffered_istream& in )