Fixed a bug in is_const_type. It didn't work right for reference types.

This commit is contained in:
Davis King 2011-10-13 18:46:38 -04:00
parent 8ecb2b7f11
commit 0957c14473
1 changed files with 5 additions and 0 deletions

View File

@ -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;
};
// ----------------------------------------------------------------------------------------