Browse Source

Merge pull request #1002 from chriseth/fix_units_constexpr

MSVC constexpr fix.
cl-refactor
Gav Wood 10 years ago
parent
commit
2734190d4f
  1. 4
      libethcore/CommonEth.cpp

4
libethcore/CommonEth.cpp

@ -35,12 +35,12 @@ namespace eth
const unsigned c_protocolVersion = 53;
const unsigned c_databaseVersion = 5;
template <size_t n> constexpr u256 exp10()
template <size_t n> u256 exp10()
{
return exp10<n - 1>() * u256(10);
}
template <> constexpr u256 exp10<0>()
template <> u256 exp10<0>()
{
return u256(1);
}

Loading…
Cancel
Save