Closed viboes closed 9 years ago
Hi,
there is a typo in
template<typename M> struct deriving_monoid<in_terms_of_plus<M>> { static constexpr M id() noexcept(noexcept(M(0))) { return M(); }
It should be either noexcept(M(0)) and return M(0) or noexcept(M()) and return M().
noexcept(M(0))
M(0)
noexcept(M())
return M()
What do you intended?
I thing that it should be noexcept(M()). It would make sense to describe things like std::string this way, and std::string(0) would work, but refer to the wrong constructor.
std::string
std::string(0)
Hi,
there is a typo in
It should be either
noexcept(M(0))
and returnM(0)
ornoexcept(M())
andreturn M()
.What do you intended?