Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/beman/copyable_function/copyable_function_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#include "copyable_function_helper.h"

#ifndef _CONST
#define _CONST
#define _CONST
#endif

#ifndef _REF
#define _REF
#define INVOKE_QUALS _CONST&
#define _REF
#define INVOKE_QUALS _CONST&

#else
#define INVOKE_QUALS _CONST _REF
#define INVOKE_QUALS _CONST _REF

#endif

#ifndef _COPYABLE_FUNC_NOEXCEPT
#define _COPYABLE_FUNC_NOEXCEPT false
#define _COPYABLE_FUNC_NOEXCEPT false
#endif

namespace beman {
Expand Down
8 changes: 4 additions & 4 deletions tests/beman/copyable_function/call.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ TEST(CallTest, CallTestUsingRvalueReference) {

TEST(CallTest, CallTestWithLvalueRef) {
{
beman::copyable_function<int()&> f(Callable{});
int x = f();
beman::copyable_function<int() &> f(Callable{});
int x = f();
EXPECT_EQ(x, 42);
}
{
beman::copyable_function<int()&> f(LargeCallable{});
int x = f();
beman::copyable_function<int() &> f(LargeCallable{});
int x = f();
EXPECT_EQ(x, 1);
}
}
Expand Down
Loading