Util: Move staticConst<T> to separate header

This commit is contained in:
Riyyi
2022-07-10 00:30:31 +02:00
parent 0c972f420c
commit 5c95288874
2 changed files with 24 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#ifndef JSON_CONVERSION_H
#define JSON_CONVERSION_H
namespace Json {
namespace Detail {
// Avoid ODR (One Definition Rule) violations
template<typename T>
constexpr T staticConst {};
} // namespace Detail
} // namespace Json
#endif // JSON_CONVERSION_H