Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

image description

Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous

I'm trying to build EnergyPlus on my local machine (Linux release 7.5.1804) with Python version 3.7.3. It compiles through all the dependency files (airflownetworklib) but it throws an error on the main.cpp file at the end. Here is the error, Error: call of overloaded ‘to_ubjson(json&, std::ofstream&)’ is ambiguous. The call for the function: json::to_ubjson(epJSON, convertedFS);

The functions for which the error has been raised are:

  1. static std::vector<uint8_t> to_ubjson(const basic_json& j, const bool use_size = false, const bool use_type = false) { std::vector<uint8_t> result; to_ubjson(j, result, use_size, use_type); return result; }

  2. static void to_ubjson(const basic_json& j, detail::output_adapter< uint8_t> o, const bool use_size = false, const bool use_type = false) { binary_writer< uint8_t>(o).write_ubjson(j, use_size, use_type); }

  3. static void to_ubjson(const basic_json& j, detail::output_adapter< char> o, const bool use_size = false, const bool use_type = false) { binary_writer< char>(o).write_ubjson(j, use_size, use_type); }

image description