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
9be84fe4
"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "d8c69d53e27937bc7d6844cecd6c0bf10745356e"
Commit
9be84fe4
authored
Apr 28, 2012
by
Davis King
Browse files
minor change to avoid compiler error in visual studio.
parent
5b450d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/graph_cuts.cpp
dlib/test/graph_cuts.cpp
+2
-2
No files found.
dlib/test/graph_cuts.cpp
View file @
9be84fe4
...
@@ -319,7 +319,7 @@ namespace
...
@@ -319,7 +319,7 @@ namespace
{
{
potts_model
m
(
g
);
potts_model
m
(
g
);
const
unsigned
long
num
=
(
unsigned
long
)
std
::
pow
(
2
,
m
.
number_of_nodes
());
const
unsigned
long
num
=
(
unsigned
long
)
std
::
pow
(
2
.0
,
(
double
)
m
.
number_of_nodes
());
double
best_score
=
-
std
::
numeric_limits
<
double
>::
infinity
();
double
best_score
=
-
std
::
numeric_limits
<
double
>::
infinity
();
for
(
unsigned
long
i
=
0
;
i
<
num
;
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
num
;
++
i
)
...
@@ -403,7 +403,7 @@ namespace
...
@@ -403,7 +403,7 @@ namespace
)
)
{
{
typedef
typename
directed_graph
::
edge_type
edge_weight_type
;
typedef
typename
directed_graph
::
edge_type
edge_weight_type
;
const
unsigned
long
num
=
(
unsigned
long
)
std
::
pow
(
2
,
g
.
number_of_nodes
());
const
unsigned
long
num
=
(
unsigned
long
)
std
::
pow
(
2
.0
,
(
double
)
g
.
number_of_nodes
());
std
::
vector
<
node_label
>
best_cut
(
g
.
number_of_nodes
(),
FREE_NODE
);
std
::
vector
<
node_label
>
best_cut
(
g
.
number_of_nodes
(),
FREE_NODE
);
...
...
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