Changeset 65:0465c11246ae in finroc_plugins_data_ports


Ignore:
Timestamp:
17.04.2014 12:13:12 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Bugfix in IsString type trait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • type_traits.h

    r63 r65  
    153153}; 
    154154 
     155template <size_t Tsize> 
     156struct IsString<char(&) [Tsize]> 
     157{ 
     158  enum { value = 1 }; 
     159}; 
     160 
     161template <size_t Tsize> 
     162struct IsString<const char(&) [Tsize]> 
     163{ 
     164  enum { value = 1 }; 
     165}; 
     166 
     167static_assert(IsString<char const(&) [9]>::value, "Error in trait implementation"); 
     168 
    155169//---------------------------------------------------------------------- 
    156170// End of namespace declaration 
Note: See TracChangeset for help on using the changeset viewer.