mirror of https://github.com/davisking/dlib.git
Fixed a bug in is_const_type. It didn't work right for reference types.
This commit is contained in:
parent
8ecb2b7f11
commit
0957c14473
|
@ -384,6 +384,11 @@ namespace dlib
|
|||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
template <typename T>
|
||||
struct is_const_type<const T&>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue