diff options
Diffstat (limited to 'dbaccess/inc/genericcontroller.hxx')
-rw-r--r-- | dbaccess/inc/genericcontroller.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx index 190cd8485713..b4570bc1215b 100644 --- a/dbaccess/inc/genericcontroller.hxx +++ b/dbaccess/inc/genericcontroller.hxx @@ -101,6 +101,14 @@ namespace dbaui base_type::reset( rhs ); return *this; } + optional& operator= ( optional< T > const& rhs ) + { + if ( rhs.is_initialized() ) + base_type::reset( rhs.get() ); + else + base_type::reset(); + return *this; + } }; template< typename T > |