Made optional< variant > to Object conversion safer

This commit is contained in:
Philipp Möller 2011-07-15 13:57:25 +00:00
parent 6987321d4e
commit ab7b592514
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ class Object
#endif
// implicit constructor from optionals containing variants
template<typename Variant>
Object(const boost::optional<Variant>& t) {
template<BOOST_VARIANT_ENUM_PARAMS(typename 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
// like the copy ctor of our base
if(t) {