Menu

#39 templates with inner enums using type parameter

open
nobody
None
5
2007-06-22
2007-05-22
ohhappyshen
No

It seems the following code cannot be handled correctly.

template <int num>
struct ExceptionCodeType
{
enum { number = num };
};

Discussion

  • Christoph Nenning

    Logged In: YES
    user_id=1568577
    Originator: NO

    template structs should be handled right, see t6_2. But this could be a problem with an Enum inside a template.

     
  • Christoph Nenning

    • summary: Handling for template struct is not correct --> templates with inner enums using type parameter
     

Log in to post a comment.

MongoDB Logo MongoDB