ldionne / dyno

Runtime polymorphism done right
Boost Software License 1.0
971 stars 42 forks source link

Wrong static_assert in detail::erase #54

Closed mikosz closed 5 years ago

mikosz commented 6 years ago

detail::erase<...>::apply(Arg&&) has a static_assert that should state

std::is_rvalue_reference\<decltype(std::forward\<Arg>(arg))>::value

instead of

std::is_rvalue_reference\<Arg>::value

This is line 103 of eraser_traits.hpp.