16 std::cout << _string << std::endl;
19 DebugPrint& operator << (
char* value ){
20 _string += std::string( value );
24 DebugPrint& operator << (
const char* value ){
25 _string += std::string( value );
29 DebugPrint& operator << (
const std::string& value ){
30 _string += std::string( value );
35 DebugPrint& operator << (
const T& value ){
36 _string += std::to_string( value );
40 DebugPrint& operator << (
const nlohmann::json::parse_error& error ) {
41 _string += std::string(
"JSON Parse Error: '") + error.what() +
"' at byte " + std::to_string(error.byte) +
" (" + std::to_string(error.id) +
")";
45 DebugPrint& operator << (
const nlohmann::json& json ) {
46 _string += json.dump();