Building the following code failed:
#include <string>
#include <tuple>
#include <unordered_map>
#include <nlohmann/json.hpp>
struct Data {
int mydata;
float myfloat;
};
int main() {
using nlohmann::json;
static_assert(!std::is_constructible<json, std::tuple<std::string, Data>>::value, "");
}
With the following error:
error: static assertion failed
static_assert(!std::is_constructible<json, std::tuple<std::string, Data>>::value, "");
In this case std::is_constructible<json, std::tuple<std::string, Data>>::value should be false.
Building the following code failed:
With the following error:
In this case
std::is_constructible<json, std::tuple<std::string, Data>>::valueshould be false.