nlohmann_json_namespace_no_version.cpp 284 B

12345678910111213
  1. #include <iostream>
  2. #define NLOHMANN_JSON_NAMESPACE_NO_VERSION 1
  3. #include <nlohmann/json.hpp>
  4. // macro needed to output the NLOHMANN_JSON_NAMESPACE as string literal
  5. #define Q(x) #x
  6. #define QUOTE(x) Q(x)
  7. int main()
  8. {
  9. std::cout << QUOTE(NLOHMANN_JSON_NAMESPACE) << std::endl;
  10. }