diff --git a/include/boost/date_time/gregorian/greg_year.hpp b/include/boost/date_time/gregorian/greg_year.hpp index b2d456a8..6d191b66 100644 --- a/include/boost/date_time/gregorian/greg_year.hpp +++ b/include/boost/date_time/gregorian/greg_year.hpp @@ -40,6 +40,7 @@ namespace gregorian { class BOOST_SYMBOL_VISIBLE greg_year : public greg_year_rep { public: BOOST_CXX14_CONSTEXPR greg_year(value_type year) : greg_year_rep(year) {} + BOOST_CXX14_CONSTEXPR value_type as_number() const {return value_;} BOOST_CXX14_CONSTEXPR operator value_type() const {return value_;} };