Util: Move json/conversion.h -> meta/odr.h

This commit is contained in:
Riyyi
2022-07-21 01:50:15 +02:00
parent 2408be335d
commit dd209a2609
4 changed files with 27 additions and 26 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#ifndef META_ODR_H
#define META_ODR_H
namespace Util {
namespace Detail {
// Avoid ODR (One Definition Rule) violations,
// variable templates are required to have external linkage
template<typename T>
constexpr T staticConst {};
} // namespace Detail
} // namespace Util
#endif // META_ODR_H