
22 Apr
2010
22 Apr
'10
11:38 a.m.
On 22/04/2010 10:00, vicente.botet wrote:
Hrr, I have added you suggestion and in addition a specialization for is_enum to emulate the compiler behavior
namespace boost { template<> class is_enum<Test::Types> : public mpl::false_ {}; }
Why? And you say "False", so evidently, the commented trait will try to instantiatie rv. And the bad part is that is_enum requires instantiation, which breaks the possibility of recursive containers. And I don't want that to happen. Is there any possibility to detect an enum without instantiating the class? Best, Ion