Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c5f064c8
Commit
c5f064c8
authored
Sep 19, 2011
by
Davis@potato-xp.localnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed code to avoid a bug in visual studio 2005
parent
a4609486
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
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
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
>
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
)
{
...
...
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