Commit 6f49ca43 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation issue with clang

parent 424eacfd
......@@ -35,6 +35,11 @@ void operator+=(std::vector<Val1>& v1, const std::vector<Val2>& v2)
v1[i] += v2[i];
}
void operator*=(std::string& v1, const std::string& v2)
{
throw GraphException("Cannot multiply strings.");
}
template <class Val1, class Val2>
void operator*=(std::vector<Val1>& v1, const std::vector<Val2>& v2)
{
......@@ -44,11 +49,6 @@ void operator*=(std::vector<Val1>& v1, const std::vector<Val2>& v2)
v1[i] *= v2[i];
}
void operator*=(std::string& v1, const string& v2)
{
throw GraphException("Cannot multiply strings.");
}
template <class Val1, class Val2>
bool operator<(const std::vector<Val1>& v1, const std::vector<Val2>& v2)
{
......
Supports Markdown
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