Commit 877d96c1 by Théo DELRIEU

rename __static_const to _static_const (reserved identifier)

parent d54d6bb8
......@@ -220,18 +220,18 @@ struct DecimalSeparator : std::numpunct<char>
// taken from ranges-v3
// TODO add doc
template <typename T>
struct __static_const
struct _static_const
{
static constexpr T value{};
};
template <typename T>
constexpr T __static_const<T>::value;
constexpr T _static_const<T>::value;
inline namespace
{
constexpr auto const& to_json = __static_const<detail::to_json_fn>::value;
constexpr auto const& from_json = __static_const<detail::from_json_fn>::value;
constexpr auto const& to_json = _static_const<detail::to_json_fn>::value;
constexpr auto const& from_json = _static_const<detail::from_json_fn>::value;
}
/*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment