ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ttei4.cpp
Go to the documentation of this file.
00001 /*
00002  * It is known that this code not compiled by following compilers:
00003  *   gcc 2.95.3
00004  *   gcc 3.3.3
00005  *   gcc 3.4.1
00006  *   gcc 4.1.1
00007  *
00008  * It is known that this code compiled by following compilers:
00009  *
00010  *   MSVC 6
00011  *   MSVC 8 Beta
00012  */
00013 
00014 /*
00015  * Indeed this code is wrong: 1. explicit template specialization
00016  * have to appear out-of-class; 2. specialized struct C have to
00017  * have function f.
00018  *
00019  */
00020 
00021 struct A
00022 {
00023   private:
00024     struct B
00025     {
00026         template <typename T>
00027         static void f( T& ) {}
00028 
00029         template <bool V>
00030         struct C
00031         {
00032             template <typename T>
00033             static void f( T& ) {}
00034         };
00035 
00036         template <>
00037         struct C<true>
00038         {
00039         };
00040     };
00041 };
00042 

Generated on Fri May 25 2012 04:33:43 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.