Fix for unexpected new base class to std::pair in VS2010. All tests now pass in VS2010
This commit is contained in:
@@ -538,7 +538,8 @@ namespace chaiscript
|
||||
std::streampos size = infile.tellg();
|
||||
infile.seekg(0, std::ios::beg);
|
||||
|
||||
std::vector<char> v(size);
|
||||
assert(size >= 0);
|
||||
std::vector<char> v(static_cast<unsigned int>(size));
|
||||
infile.read(&v[0], size);
|
||||
|
||||
std::string ret_val (v.empty() ? std::string() : std::string (v.begin(), v.end()).c_str());
|
||||
|
Reference in New Issue
Block a user