Fixed constness detection of const char[] arrays

This commit is contained in:
Peter Schojer
2008-05-14 06:00:40 +00:00
parent 96c57718c4
commit 4e730ecc7e
2 changed files with 15 additions and 2 deletions

View File

@@ -109,6 +109,17 @@ struct IsConst<const T>
};
template <typename T, int i>
struct IsConst<const T[i]>
/// Specialization for const char arrays
{
enum
{
VALUE = 1
};
};
template <typename T>
struct TypeWrapper
/// Use the type wrapper if you want to dedecouple constness and references from template types