Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0957c144
Commit
0957c144
authored
Oct 13, 2011
by
Davis King
Browse files
Fixed a bug in is_const_type. It didn't work right for reference types.
parent
8ecb2b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dlib/algs.h
dlib/algs.h
+5
-0
No files found.
dlib/algs.h
View file @
0957c144
...
@@ -384,6 +384,11 @@ namespace dlib
...
@@ -384,6 +384,11 @@ namespace dlib
{
{
static
const
bool
value
=
true
;
static
const
bool
value
=
true
;
};
};
template
<
typename
T
>
struct
is_const_type
<
const
T
&>
{
static
const
bool
value
=
true
;
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment