From 8dc6cfb15836377a4c3467c1d4d18549cc2789c8 Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Sun, 7 Jun 2015 17:28:25 -0400 Subject: [PATCH] namespace fix for issue #239 --- gtsam/base/tests/testGroup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/base/tests/testGroup.cpp b/gtsam/base/tests/testGroup.cpp index 241f71802..bce9a6036 100644 --- a/gtsam/base/tests/testGroup.cpp +++ b/gtsam/base/tests/testGroup.cpp @@ -104,6 +104,7 @@ TEST(Group, S3) { //****************************************************************************** // The direct product of S2=Z2 and S3 is the symmetry group of a hexagon, // i.e., the dihedral group of order 12 (denoted Dih6 because 6-sided polygon) +namespace gtsam { typedef DirectProduct Dih6; std::ostream &operator<<(std::ostream &os, const Dih6& m) { @@ -112,7 +113,7 @@ std::ostream &operator<<(std::ostream &os, const Dih6& m) { } // Provide traits with Testable -namespace gtsam { + template<> struct traits : internal::MultiplicativeGroupTraits { static void Print(const Dih6& m, const string& s = "") {