Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
24f38401
Commit
24f38401
authored
Jul 29, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some compilation warnings
parent
7067c4fd
Pipeline
#690
failed with stage
in 94 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/boost-workaround/boost/graph/graphml.hpp
src/boost-workaround/boost/graph/graphml.hpp
+3
-3
src/graph/gml.hh
src/graph/gml.hh
+2
-2
src/graph/graphml.cpp
src/graph/graphml.cpp
+1
-1
No files found.
src/boost-workaround/boost/graph/graphml.hpp
View file @
24f38401
...
...
@@ -162,7 +162,7 @@ public:
(
name
,
m_dp
,
graph_property_tag
(),
value
,
value_type
,
type_found
));
}
catch
(
bad_lexical_cast
)
catch
(
bad_lexical_cast
&
)
{
throw
parse_error
(
"invalid value
\"
"
+
value
+
"
\"
for key
\"
"
+
name
+
"
\"
of type
\"
"
+
value_type
+
"
\"
"
);
...
...
@@ -188,7 +188,7 @@ public:
(
name
,
m_dp
,
any_cast
<
vertex_descriptor
>
(
vertex
),
value
,
value_type
,
type_found
));
}
catch
(
bad_lexical_cast
)
catch
(
bad_lexical_cast
&
)
{
throw
parse_error
(
"invalid value
\"
"
+
value
+
"
\"
for key "
+
name
+
" of type "
+
value_type
);
...
...
@@ -214,7 +214,7 @@ public:
(
name
,
m_dp
,
any_cast
<
edge_descriptor
>
(
edge
),
value
,
value_type
,
type_found
));
}
catch
(
bad_lexical_cast
)
catch
(
bad_lexical_cast
&
)
{
throw
parse_error
(
"invalid value
\"
"
+
value
+
"
\"
for key "
+
name
+
" of type "
+
value_type
);
...
...
src/graph/gml.hh
View file @
24f38401
...
...
@@ -163,7 +163,7 @@ public:
{
id
=
boost
::
get
<
double
>
(
_stack
.
back
().
second
[
"id"
]);
}
catch
(
bad_get
)
catch
(
bad_get
&
)
{
throw
gml_parse_error
(
"invalid node id"
);
}
...
...
@@ -195,7 +195,7 @@ public:
source
=
boost
::
get
<
double
>
(
_stack
.
back
().
second
[
"source"
]);
target
=
boost
::
get
<
double
>
(
_stack
.
back
().
second
[
"target"
]);
}
catch
(
bad_get
)
catch
(
bad_get
&
)
{
throw
gml_parse_error
(
"invalid source and target ids"
);
}
...
...
src/graph/graphml.cpp
View file @
24f38401
...
...
@@ -293,7 +293,7 @@ private:
{
id
=
lexical_cast
<
size_t
>
(
std
::
string
(
v
,
1
));
}
catch
(
bad_lexical_cast
)
catch
(
bad_lexical_cast
&
)
{
std
::
stringstream
s
;
s
<<
"on line "
<<
XML_GetCurrentLineNumber
(
m_parser
)
...
...
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