Commit 24f38401 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix some compilation warnings

parent 7067c4fd
Pipeline #690 failed with stage
in 94 minutes and 45 seconds
......@@ -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);
......
......@@ -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");
}
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment