rollbear/strong_type

error: binding reference of type 'XX' (aka 'char') to value of type 'XX' (aka 'const char') drops 'const' qualifier

mohabouje opened this issue · 3 comments

The static cast should be to a reference underlying object and not to a const reference.

auto& self = static_cast<const type&>(*this);

Right! Will fix. Thank you!

Are you in a hurry for a tag, or can I leave it as is, fixed on master?

No worries, I did fix it in a local fork. I will upgrade it once a new version with the fix is released.