mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 07:14:46 +02:00
Fixed constness detection of const char[] arrays
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user