Re: [Boost-bugs] [Boost C++ Libraries] #11778: Cannot test C++11 "enum class" types

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11778: Cannot test C++11 "enum class" types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-03 21:54:50


#11778: Cannot test C++11 "enum class" types
-----------------------------------------+---------------------
  Reporter: Adam Nielsen <a.nielsen@…> | Owner: rogeeff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+---------------------

Comment (by Adam Nielsen <a.nielsen@…>):

 Yes that does work - sorry I didn't realise you had already catered for
 this situation! I had assumed it would be possible to simply convert the
 enums to ints when printing, but then enum class types can't be inherited
 so I imagine it's not possible to handle enum classes in a generic way
 like this.

 I don't suppose there's any way a static_assert or similar could be used
 to at least get an error message that makes it look less like a problem
 with the library code?

 Either way thanks for your help!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11778#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC