Skip to content

Commit

Permalink
Update default ctor for optional
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirShaleev committed Feb 24, 2024
1 parent c94a283 commit 9c2bdfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
strategy:
fail-fast: false
matrix:
gcc: [ 7, 8, 9, 10, 11, 12, 13 ]
gcc: [ 7, 8, 9, 10, 11, 13 ]
standard: [ 11, 14, 17, 20, 23 ]
name: "GCC ${{ matrix.gcc }} [C++${{ matrix.standard }}]"
runs-on: ubuntu-20.04
Expand Down
8 changes: 1 addition & 7 deletions include/ipaddress/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ class optional {
/**
* Default constructor that constructs an `optional` object without a contained value.
*/
IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE optional()

#if !defined(__clang_major__) || __clang_major__ > 8
IPADDRESS_NOEXCEPT
#endif

= default;
IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE optional() noexcept(noexcept(T())) = default;

/**
* Constructs an `optional` object that does not contain a value.
Expand Down

0 comments on commit 9c2bdfe

Please sign in to comment.