/** * @file include/ActivMiddleware/Misc/Optional.h * * @brief Helpers for Boost::optional. */ #if (!defined ACTIV_MISC_OPTIONAL_H) #define ACTIV_MISC_OPTIONAL_H #include "ActivMiddleware/ActivMiddleware.h" #include "ActivMiddleware/CxxYZ/type_traits.h" #include ACTIV_BOOST_INCLUDE(optional/optional.hpp) //! Activ namespace. namespace Activ { //! Type trait for non-Boost::optional<> types. template class IsOptional : public CxxYZ::false_type { }; // --------------------------------------------------------------------------------------------------------------------------------- //! Type trait for Boost::optional<> types. template class IsOptional > : public CxxYZ::true_type { }; } // namespace Activ #endif // (!defined ACTIV_MISC_OPTIONAL_H)