Skip to content

Commit

Permalink
ut
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxwa committed Mar 23, 2024
1 parent 19e082a commit 0208e0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/proxy_traits_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <stdexcept>
#include <type_traits>
#include "proxy.h"
#include "utils.h"

namespace {

Expand Down Expand Up @@ -167,6 +168,13 @@ struct RuntimeReflection {
PRO_DEF_FACADE(FacadeWithRuntimeReflection, PRO_MAKE_DISPATCH_PACK(), pro::relocatable_ptr_constraints, RuntimeReflection);
static_assert(!pro::proxiable<MockTrivialPtr, FacadeWithRuntimeReflection>);

struct FacadeWithTupleLikeDispatches {
using dispatch_types = std::array<utils::poly::ToString, 1>;
static constexpr auto constraints = pro::relocatable_ptr_constraints;
using reflection_type = void;
};
static_assert(pro::facade<FacadeWithTupleLikeDispatches>);

struct BadFacade_MissingDispatchTypes {
#ifdef __clang__
#pragma clang diagnostic push
Expand Down

0 comments on commit 0208e0a

Please sign in to comment.