Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
e43e4e8b
Commit
e43e4e8b
authored
Jun 04, 2012
by
Tiago Peixoto
Browse files
Fix some remaining issues with the clang compiler in MacOS X
parent
70a2ce29
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_properties.hh
View file @
e43e4e8b
...
...
@@ -211,7 +211,7 @@ public:
const
string
&
operator
()(
const
std
::
type_info
&
type
)
const
{
string
*
name
;
string
const
*
name
;
mpl
::
for_each
<
TypeSequence
>
(
bind
<
void
>
(
find_name
(),
_1
,
ref
(
type
),
ref
(
_all_names
),
ref
(
name
)));
...
...
@@ -228,8 +228,8 @@ private:
{
template
<
class
Type
>
void
operator
()(
Type
,
const
std
::
type_info
&
type
,
vector
<
string
>&
all_names
,
string
*&
name
)
const
const
vector
<
string
>&
all_names
,
string
const
*&
name
)
const
{
size_t
index
=
mpl
::
find
<
TypeSequence
,
Type
>::
type
::
pos
::
value
;
if
(
type
==
typeid
(
Type
))
...
...
@@ -249,7 +249,7 @@ private:
};
const
char
**
_type_names
;
static
vector
<
string
>
_all_names
;
vector
<
string
>
_all_names
;
};
//
...
...
src/graph/layout/graph_sfdp.hh
View file @
e43e4e8b
...
...
@@ -128,7 +128,7 @@ inline double dist(const Pos& p1, const Pos& p2)
{
double
r
=
0
;
for
(
size_t
i
=
0
;
i
<
2
;
++
i
)
r
+=
pow
(
p1
[
i
]
-
p2
[
i
],
2.
);
r
+=
pow
(
double
(
p1
[
i
]
-
p2
[
i
]
)
,
2.
);
return
sqrt
(
r
);
}
...
...
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