Skip to content

Commit

Permalink
Fixed 'nodiscard' keyword errors
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Dec 18, 2023
1 parent c75617c commit d3b3fdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/etl/binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -2284,8 +2284,8 @@ namespace etl
struct binary_not : public etl::unary_function<T, T>
{
//***********************************
ETL_CONSTEXPR
ETL_NODISCARD
ETL_CONSTEXPR
T operator ()(T value) ETL_NOEXCEPT
{
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
Expand All @@ -2309,8 +2309,8 @@ namespace etl
}

//***********************************
ETL_CONSTEXPR
ETL_NODISCARD
ETL_CONSTEXPR
T operator ()(T value) ETL_NOEXCEPT
{
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
Expand Down Expand Up @@ -2338,8 +2338,8 @@ namespace etl
}

//***********************************
ETL_CONSTEXPR
ETL_NODISCARD
ETL_CONSTEXPR
T operator ()(T value) ETL_NOEXCEPT
{
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
Expand Down Expand Up @@ -2367,8 +2367,8 @@ namespace etl
}

//***********************************
ETL_CONSTEXPR
ETL_NODISCARD
ETL_CONSTEXPR
T operator ()(T value) ETL_NOEXCEPT
{
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
Expand Down

0 comments on commit d3b3fdb

Please sign in to comment.