Skip to content

Commit

Permalink
Removed [[nodiscard]] from result type
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Dec 11, 2023
1 parent 1b2b46c commit 3d2a322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/leaf/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace leaf_detail
////////////////////////////////////////

template <class T>
class BOOST_LEAF_SYMBOL_VISIBLE BOOST_LEAF_ATTRIBUTE_NODISCARD result
class BOOST_LEAF_SYMBOL_VISIBLE result
{
template <class U>
friend class result;
Expand Down Expand Up @@ -607,7 +607,7 @@ namespace leaf_detail
}

template <>
class BOOST_LEAF_SYMBOL_VISIBLE BOOST_LEAF_ATTRIBUTE_NODISCARD result<void>:
class BOOST_LEAF_SYMBOL_VISIBLE result<void>:
result<leaf_detail::void_>
{
template <class U>
Expand Down

0 comments on commit 3d2a322

Please sign in to comment.