summaryrefslogtreecommitdiff
path: root/geom_matching/wasserstein/include/diagonal_heap.h
diff options
context:
space:
mode:
authorArnur Nigmetov <a.nigmetov@gmail.com>2018-05-19 20:33:33 +0200
committerArnur Nigmetov <a.nigmetov@gmail.com>2018-05-19 20:33:33 +0200
commit9693f140d91e751aabe46b76b89c332c7f307e17 (patch)
tree0fc707a72eabe7496e79de4ddd46e9c945e16bf3 /geom_matching/wasserstein/include/diagonal_heap.h
parent75cf0745e95a37c8d65e7a283a11cd500ab6edc2 (diff)
Add inline qualifier to Wasserstein code.
To avoid linking problems.
Diffstat (limited to 'geom_matching/wasserstein/include/diagonal_heap.h')
-rw-r--r--geom_matching/wasserstein/include/diagonal_heap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/geom_matching/wasserstein/include/diagonal_heap.h b/geom_matching/wasserstein/include/diagonal_heap.h
index 9ffee70..3b3c8bc 100644
--- a/geom_matching/wasserstein/include/diagonal_heap.h
+++ b/geom_matching/wasserstein/include/diagonal_heap.h
@@ -129,7 +129,7 @@ using LossesHeapOld = IdxValHeap<Real, CompPairsBySecondLexStruct<Real>>;
#endif
template <class Real>
-std::string losses_heap_to_string(const LossesHeapOld<Real>& h)
+inline std::string losses_heap_to_string(const LossesHeapOld<Real>& h)
{
std::stringstream result;
result << "[";