Menu

#4 Parser error for expression as template parameter

open
None
5
2012-07-25
2008-09-18
No

The following code fails to parse :

template< int > class toto {};

template< typename T > class titi
{
typename toto< 0 == 1 > t;
};

MAT.

Discussion

  • Mathieu Champlon

    template< int > class A {};

    class B
    {
    A< 0 == 1 > c;
    };

     
  • Mathieu Champlon

    A< 0 == 1 > a;

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.