From dbaf1442a99f562fbf4a2ef497ed32d72733792c Mon Sep 17 00:00:00 2001 From: sezerkandis <32538370+sezerkandis@users.noreply.github.com> Date: Thu, 23 Sep 2021 15:25:47 +0300 Subject: [PATCH] invalid suffix on literal, c++11 requires a space between literal and identifier --- example/example.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 72b56e7..0dee2ba 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -228,12 +228,12 @@ int ws_userStream_OnData( Json::Value &json_result ) { if ( executionType == "NEW" ) { if ( orderStatus == "REJECTED" ) { - printf(KRED"Order Failed! Reason: %s\n"RESET, reason.c_str() ); + printf(KRED"Order Failed! Reason: %s\n" RESET, reason.c_str() ); } - printf(KGRN"\n\n%s %s %s %s(%s) %s %s\n\n"RESET, symbol.c_str() , side.c_str() , orderType.c_str() , orderId.c_str() , orderStatus.c_str(), price.c_str(), qty.c_str() ); + printf(KGRN"\n\n%s %s %s %s(%s) %s %s\n\n" RESET, symbol.c_str() , side.c_str() , orderType.c_str() , orderId.c_str() , orderStatus.c_str(), price.c_str(), qty.c_str() ); return 0; } - printf(KBLU"\n\n%s %s %s %s %s\n\n"RESET, symbol.c_str() , side.c_str() , executionType.c_str() , orderType.c_str() , orderId.c_str() ); + printf(KBLU"\n\n%s %s %s %s %s\n\n" RESET, symbol.c_str() , side.c_str() , executionType.c_str() , orderType.c_str() , orderId.c_str() ); } else if ( action == "outboundAccountInfo" ) { @@ -512,4 +512,4 @@ int main() { return 0; -} \ No newline at end of file +}