Commit 0957c144 authored by Davis King's avatar Davis King

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

parent 8ecb2b7f
......@@ -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;
};
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment