🚧 rephrased assertions
This commit is contained in:
parent
50a3f3b301
commit
c154f3133d
2 changed files with 8 additions and 4 deletions
|
@ -833,7 +833,8 @@ struct to_json_fn
|
||||||
template<typename BasicJsonType, typename T>
|
template<typename BasicJsonType, typename T>
|
||||||
void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept
|
void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept
|
||||||
{
|
{
|
||||||
static_assert(sizeof(BasicJsonType) == 0, "to_json method in T's namespace can not be called");
|
static_assert(sizeof(BasicJsonType) == 0,
|
||||||
|
"could not find to_json() method in T's namespace");
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -859,7 +860,8 @@ struct from_json_fn
|
||||||
template<typename BasicJsonType, typename T>
|
template<typename BasicJsonType, typename T>
|
||||||
void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept
|
void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept
|
||||||
{
|
{
|
||||||
static_assert(sizeof(BasicJsonType) == 0, "from_json method in T's namespace can not be called");
|
static_assert(sizeof(BasicJsonType) == 0,
|
||||||
|
"could not find from_json() method in T's namespace");
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -833,7 +833,8 @@ struct to_json_fn
|
||||||
template<typename BasicJsonType, typename T>
|
template<typename BasicJsonType, typename T>
|
||||||
void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept
|
void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept
|
||||||
{
|
{
|
||||||
static_assert(sizeof(BasicJsonType) == 0, "to_json method in T's namespace can not be called");
|
static_assert(sizeof(BasicJsonType) == 0,
|
||||||
|
"could not find to_json() method in T's namespace");
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -859,7 +860,8 @@ struct from_json_fn
|
||||||
template<typename BasicJsonType, typename T>
|
template<typename BasicJsonType, typename T>
|
||||||
void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept
|
void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept
|
||||||
{
|
{
|
||||||
static_assert(sizeof(BasicJsonType) == 0, "from_json method in T's namespace can not be called");
|
static_assert(sizeof(BasicJsonType) == 0,
|
||||||
|
"could not find from_json() method in T's namespace");
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue