Skip to content

Commit

Permalink
rename __static_const to _static_const (reserved identifier)
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo DELRIEU committed Oct 20, 2016
1 parent 2407833 commit db4806b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,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;
}

/*!
Expand Down

0 comments on commit db4806b

Please sign in to comment.