joboccara / NamedType

Implementation of strong types in C++
MIT License
769 stars 84 forks source link

get() const should return a reference to const rather than a const reference #17

Closed Anstow closed 5 years ago

Anstow commented 6 years ago

This fixes the issue that NamedType exhibits the issue you described here where get() on const NamedType<T&, Tag> is mutable rather than const.

joboccara commented 5 years ago

Thanks! :)