Commit 2d26d85c authored by Niels's avatar Niels

some cleanup

parent d3b0f207
......@@ -62,7 +62,7 @@ Though it's 2015 already, the support for C++11 is still a bit sparse. Currently
I would be happy to learn about other compilers/versions.
Unfortunately, Microsoft Visual C++ support at the moment. MSVC 2013 and MSVC 2014 have been reported not to be able to compile class. Note that I will not accept pull requests that "fix" the code by polluting it with preprocessor directives to mitigate MSVC's lacking C++11 support.
Unfortunately, Microsoft Visual C++ support at the moment. MSVC 2013 and MSVC 2014 have been reported not to be able to compile the class. Note that I will not accept pull requests that "fix" the code by polluting it with preprocessor directives to mitigate MSVC's lacking C++11 support.
## Examples
......
......@@ -185,7 +185,7 @@ class basic_json
array_t* array;
/// string (stored with pointer to save storage)
string_t* string;
/// bolean
/// boolean
boolean_t boolean;
/// number (integer)
number_integer_t number_integer;
......@@ -1983,15 +1983,14 @@ class basic_json
o.width(0);
// do the actual serialization
j.dump(o, prettyPrint, indentation);
j.dump(o, prettyPrint, static_cast<unsigned int>(indentation));
return o;
}
/// serialize to stream
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
{
o << j;
return o;
return o << j;
}
......
......@@ -185,7 +185,7 @@ class basic_json
array_t* array;
/// string (stored with pointer to save storage)
string_t* string;
/// bolean
/// boolean
boolean_t boolean;
/// number (integer)
number_integer_t number_integer;
......@@ -1983,7 +1983,7 @@ class basic_json
o.width(0);
// do the actual serialization
j.dump(o, prettyPrint, static_cast<int>(indentation));
j.dump(o, prettyPrint, static_cast<unsigned int>(indentation));
return o;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment