Skip to content

Commit

Permalink
Remove uses of BOOST_CONSTEXPR
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2024
1 parent e0b0118 commit 128fd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
11 changes: 2 additions & 9 deletions include/boost/system/detail/error_category.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,11 @@ class BOOST_SYMBOL_VISIBLE error_category

~error_category() = default;

#if !BOOST_WORKAROUND(BOOST_GCC, < 40800)
BOOST_CONSTEXPR
#endif
error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_()
constexpr error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_()
{
}

explicit
#if !BOOST_WORKAROUND(BOOST_GCC, < 40800)
BOOST_CONSTEXPR
#endif
error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_()
explicit constexpr error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_()
{
}

Expand Down
5 changes: 1 addition & 4 deletions include/boost/system/detail/error_code.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ class error_code

// constructors:

#if !BOOST_WORKAROUND(BOOST_GCC, < 40800)
BOOST_CONSTEXPR
#endif
error_code() BOOST_NOEXCEPT:
constexpr error_code() BOOST_NOEXCEPT:
d1_(), lc_flags_( 0 )
{
}
Expand Down

0 comments on commit 128fd93

Please sign in to comment.