Boost logo

Boost :

Subject: Re: [boost] [core] Breaking bugfix in scoped enums
From: Peter Dimov (lists_at_[hidden])
Date: 2014-06-06 19:30:33

Vicente J. Botet Escriba wrote:

> operator enum_type() const BOOST_NOEXCEPT { return get_native_value_(); }
> I was expecting two implicit conversions: one from EnumType to enum_type
> and the other from enum_type to int. Am I missing something in C++98?

If enum_type is an enum type, its conversion to int is not user-defined and
doesn't count.

Boost list run by bdawes at, gregod at, cpdaniel at, john at