Fix unused_func warning. Function was declared but not defined
This commit is contained in:
parent
e9da9ca93f
commit
658e613902
@ -42,10 +42,10 @@ enum test
|
|||||||
struct pod {};
|
struct pod {};
|
||||||
struct pod_bis {};
|
struct pod_bis {};
|
||||||
|
|
||||||
void to_json(json&, pod) noexcept;
|
void to_json(json&, pod) noexcept{}
|
||||||
void to_json(json&, pod_bis);
|
void to_json(json&, pod_bis){}
|
||||||
void from_json(const json&, pod) noexcept;
|
void from_json(const json&, pod) noexcept{}
|
||||||
void from_json(const json&, pod_bis);
|
void from_json(const json&, pod_bis){}
|
||||||
static json j;
|
static json j;
|
||||||
|
|
||||||
static_assert(noexcept(json{}), "");
|
static_assert(noexcept(json{}), "");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user