Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jll63 committed Sep 1, 2024
1 parent 528bba8 commit e1668c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/yorel/yomm2/detail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,16 +285,16 @@ template<typename Method, typename Signature>
inline typename next_ptr_t<Signature>::type next;

template<typename B, typename D, typename = void>
struct requires_dynamic_cast_refaux : std::true_type {};
struct requires_dynamic_cast_ref_aux : std::true_type {};

template<typename B, typename D>
struct requires_dynamic_cast_refaux<
struct requires_dynamic_cast_ref_aux<
B, D, std::void_t<decltype(static_cast<D>(std::declval<B>()))>>
: std::false_type {};

template<class B, class D>
constexpr bool requires_dynamic_cast =
requires_dynamic_cast_refaux<B, D>::value;
requires_dynamic_cast_ref_aux<B, D>::value;

template<class Policy, class D, class B>
decltype(auto) optimal_cast(B&& obj) {
Expand Down
4 changes: 1 addition & 3 deletions include/yorel/yomm2/policy.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#ifndef YOREL_YOMM2_POLICY_INCLUDED
#define YOREL_YOMM2_POLICY_INCLUDED

#include <array>
#include <charconv>
#include <cstdint>
#include <functional>
#include <limits>
#include <memory>
#include <random> // for default_random_en...
#include <stdio.h>
#include <random>
#include <string_view>
#include <unordered_map>
#include <variant>
Expand Down

0 comments on commit e1668c3

Please sign in to comment.