Skip to content

Commit 2c398b6

Browse files
committed
Cleanup
1 parent 7cc129d commit 2c398b6

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

include/papilio/core.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PAPILIO_EXPORT class format_error : public std::runtime_error
4141

4242
format_error(const format_error&) = default;
4343

44-
~format_error();
44+
~format_error() override;
4545
};
4646

4747
/**
@@ -805,6 +805,8 @@ PAPILIO_EXPORT class bad_handle_cast : public std::bad_cast
805805
public:
806806
using bad_cast::bad_cast;
807807

808+
~bad_handle_cast() override;
809+
808810
const char* what() const noexcept override
809811
{
810812
return "bad handle cast";

include/papilio/utility.hpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,12 @@ namespace detail
392392

393393
named_arg_proxy& operator=(const named_arg_proxy&) = delete;
394394

395-
// clang-format off
396-
397395
template <typename T>
398396
[[nodiscard]]
399397
constexpr auto operator=(T&& value) noexcept
400398
{
401399
return PAPILIO_NS arg(name, std::forward<T>(value));
402400
}
403-
404-
// clang-format on
405401
};
406402
} // namespace detail
407403

@@ -436,8 +432,6 @@ PAPILIO_EXPORT struct independent_t
436432
template <typename T>
437433
using proxy = independent_proxy<T>;
438434

439-
// clang-format off
440-
441435
template <typename T>
442436
[[nodiscard]]
443437
constexpr proxy<T> operator()(T& v) const noexcept
@@ -458,8 +452,6 @@ PAPILIO_EXPORT struct independent_t
458452
{
459453
return proxy<const T>(v);
460454
}
461-
462-
// clang-format on
463455
};
464456

465457
PAPILIO_EXPORT inline constexpr independent_t independent{};
@@ -1317,25 +1309,22 @@ namespace detail
13171309
/// @}
13181310
} // namespace papilio
13191311

1320-
namespace std
1321-
{
13221312
template <typename T1, typename T2>
1323-
struct tuple_element<0, ::papilio::compressed_pair<T1, T2>>
1313+
struct std::tuple_element<0, ::papilio::compressed_pair<T1, T2>>
13241314
{
13251315
using type = T1;
13261316
};
13271317

13281318
template <typename T1, typename T2>
1329-
struct tuple_element<1, ::papilio::compressed_pair<T1, T2>>
1319+
struct std::tuple_element<1, ::papilio::compressed_pair<T1, T2>>
13301320
{
13311321
using type = T2;
13321322
};
13331323

13341324
template <typename T1, typename T2>
1335-
struct tuple_size<::papilio::compressed_pair<T1, T2>> :
1325+
struct std::tuple_size<::papilio::compressed_pair<T1, T2>> :
13361326
integral_constant<size_t, 2>
13371327
{};
1338-
} // namespace std
13391328

13401329
#include "detail/suffix.hpp"
13411330

src/core.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ namespace papilio
55
{
66
format_error::~format_error() = default;
77

8+
bad_handle_cast::~bad_handle_cast() = default;
9+
810
namespace detail
911
{
1012
static std::string_view script_ec_to_sv(script_error_code ec) noexcept

0 commit comments

Comments
 (0)