Boost logo

Boost :

Subject: Re: [boost] [type traits] has_complement, enum class, and gcc 4.9
From: Nevin Liber (nevin_at_[hidden])
Date: 2014-04-21 12:22:21


On 21 April 2014 01:26, Frédéric Bron <frederic.bron_at_[hidden]> wrote:

> does it compiles if:
> - the enum class is not empty?

No, it still fails to compile. It doesn't matter whether or not the enum
class is empty nor if the underlying type is specified.

More details at:

Stack Overflow:
http://stackoverflow.com/questions/23108590/enum-class-and-global-operator-overloading
gcc: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60852
clang: http://llvm.org/bugs/show_bug.cgi?id=19452

I opened a Trac ticket at https://svn.boost.org/trac/boost/ticket/9913.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk