mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-20 18:00:05 +01:00
added template <typename T, int i> struct IsConst<const T[i]>
This commit is contained in:
parent
e10566779e
commit
33f1c102e3
@ -50,7 +50,7 @@ template <typename T>
|
|||||||
struct IsReference
|
struct IsReference
|
||||||
/// Use this struct to determine if a template type is a reference.
|
/// Use this struct to determine if a template type is a reference.
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
VALUE = 0
|
VALUE = 0
|
||||||
};
|
};
|
||||||
@ -81,7 +81,7 @@ template <typename T>
|
|||||||
struct IsConst
|
struct IsConst
|
||||||
/// Use this struct to determine if a template type is a const type.
|
/// Use this struct to determine if a template type is a const type.
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
VALUE = 0
|
VALUE = 0
|
||||||
};
|
};
|
||||||
@ -108,6 +108,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>
|
template <typename T>
|
||||||
struct TypeWrapper
|
struct TypeWrapper
|
||||||
/// Use the type wrapper if you want to decouple constness and references from template types.
|
/// Use the type wrapper if you want to decouple constness and references from template types.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user