mirror of https://github.com/CGAL/cgal
Made optional< variant > to Object conversion safer
This commit is contained in:
parent
6987321d4e
commit
ab7b592514
|
|
@ -108,8 +108,8 @@ class Object
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// implicit constructor from optionals containing variants
|
// implicit constructor from optionals containing variants
|
||||||
template<typename Variant>
|
template<BOOST_VARIANT_ENUM_PARAMS(typename T)>
|
||||||
Object(const boost::optional<Variant>& t) {
|
Object(const boost::optional< boost::variant<BOOST_VARIANT_ENUM_PARAMS(T) > >& t) {
|
||||||
// we cannot invoke another ctor from here, so we have to behave
|
// we cannot invoke another ctor from here, so we have to behave
|
||||||
// like the copy ctor of our base
|
// like the copy ctor of our base
|
||||||
if(t) {
|
if(t) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue