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
c5f064c8
"tutorials/vscode:/vscode.git/clone" did not exist on "f846d902cf6c5cbcd988eccb3409955415b988f0"
Commit
c5f064c8
authored
Sep 19, 2011
by
Davis@potato-xp.localnet
Browse files
Changed code to avoid a bug in visual studio 2005
parent
a4609486
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dlib/svm/sparse_vector.h
dlib/svm/sparse_vector.h
+3
-1
No files found.
dlib/svm/sparse_vector.h
View file @
c5f064c8
...
@@ -357,8 +357,10 @@ namespace dlib
...
@@ -357,8 +357,10 @@ namespace dlib
return
sample
.
size
();
return
sample
.
size
();
}
}
// This !is_built_in_scalar_type<typename T::type>::value is here to avoid an inexplicable bug in Vistual Studio 2005
template
<
typename
T
>
template
<
typename
T
>
typename
enable_if
<
is_pair
<
typename
T
::
type
::
value_type
>
,
unsigned
long
>::
type
max_index_plus_one
(
typename
enable_if_c
<
(
!
is_built_in_scalar_type
<
typename
T
::
type
>::
value
)
&&
(
is_pair
<
typename
T
::
type
::
value_type
>::
value
)
,
unsigned
long
>::
type
max_index_plus_one
(
const
T
&
samples
const
T
&
samples
)
)
{
{
...
...
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