From f22ae81a919db06319deffc88cb9c8fa59fa6d2e Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 12 Apr 2012 14:35:20 +0000 Subject: [PATCH] Trivial bug: add missing #include If CGAL::cpp0x::tuple is Boosts implementation, one wants equality operator operator==. Add the corresponding test in test/STL_Extension/. --- STL_Extension/include/CGAL/tuple.h | 1 + STL_Extension/test/STL_Extension/test_stl_extension.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/STL_Extension/include/CGAL/tuple.h b/STL_Extension/include/CGAL/tuple.h index 7caa2c05098..65699b3c76e 100644 --- a/STL_Extension/include/CGAL/tuple.h +++ b/STL_Extension/include/CGAL/tuple.h @@ -31,6 +31,7 @@ # include #else # include +# include #endif namespace CGAL { diff --git a/STL_Extension/test/STL_Extension/test_stl_extension.cpp b/STL_Extension/test/STL_Extension/test_stl_extension.cpp index d81c78068db..a7ab589d457 100644 --- a/STL_Extension/test/STL_Extension/test_stl_extension.cpp +++ b/STL_Extension/test/STL_Extension/test_stl_extension.cpp @@ -8109,10 +8109,14 @@ void test_tuple(){ CGAL_static_assertion( (boost::is_same::type,My_to_int>::value) ); T1 t1=CGAL::cpp0x::make_tuple(1,2); + T1 t1_2=CGAL::cpp0x::make_tuple(1,2); int i1=-1,i2=-1; CGAL::cpp0x::tie(i1,i2)=t1; CGAL_assertion( CGAL::cpp0x::get<0>(t1)==i1 ); CGAL_assertion( CGAL::cpp0x::get<1>(t1)==i2 ); + CGAL_assertion(t1==t1_2); // test the equality operator + T2 t2 = T2(); + CGAL_assertion( t2 == T2() ); } void test_prev_next()