From ab7b5925144c5a781146e9e3de0d14b433bde84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Fri, 15 Jul 2011 13:57:25 +0000 Subject: [PATCH] Made optional< variant > to Object conversion safer --- STL_Extension/include/CGAL/Object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STL_Extension/include/CGAL/Object.h b/STL_Extension/include/CGAL/Object.h index ecad553ba40..97cb694c4f7 100644 --- a/STL_Extension/include/CGAL/Object.h +++ b/STL_Extension/include/CGAL/Object.h @@ -108,8 +108,8 @@ class Object #endif // implicit constructor from optionals containing variants - template - Object(const boost::optional& t) { + template + Object(const boost::optional< boost::variant >& t) { // we cannot invoke another ctor from here, so we have to behave // like the copy ctor of our base if(t) {