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
6cbbe937
Commit
6cbbe937
authored
Nov 03, 2011
by
Davis@potato-xp.localnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed a little to work around a bug in visual studio 2005
parent
cb7cfec1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
sequence_labeler.h
dlib/svm/sequence_labeler.h
+8
-2
No files found.
dlib/svm/sequence_labeler.h
View file @
6cbbe937
...
@@ -79,16 +79,22 @@ namespace dlib
...
@@ -79,16 +79,22 @@ namespace dlib
template
<
typename
T
>
template
<
typename
T
>
two_bytes
has_reject_labeling_helper
(
int
)
{
return
two_bytes
();}
two_bytes
has_reject_labeling_helper
(
int
)
{
return
two_bytes
();}
template
<
typename
T
>
struct
work_around_visual_studio_bug
{
const
static
unsigned
long
U
=
sizeof
(
has_reject_labeling_helper
<
T
>
(
'a'
));
};
// This is a template to tell you if a feature_extractor has a reject_labeling function or not.
// This is a template to tell you if a feature_extractor has a reject_labeling function or not.
template
<
typename
T
,
typename
U
=
void
>
template
<
typename
T
,
unsigned
long
U
=
work_around_visual_studio_bug
<
T
>::
U
>
struct
has_reject_labeling
struct
has_reject_labeling
{
{
static
const
bool
value
=
false
;
static
const
bool
value
=
false
;
};
};
template
<
typename
T
>
template
<
typename
T
>
struct
has_reject_labeling
<
T
,
typename
dlib
::
enable_if_c
<
sizeof
(
dlib
::
impl
::
has_reject_labeling_helper
<
T
>
(
'a'
))
==
1
>::
type
>
struct
has_reject_labeling
<
T
,
1
>
{
{
static
const
bool
value
=
true
;
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