Skip to content

Commit 0e90096

Browse files
committed
fix- gcc/clang compile error.
1 parent 15800a5 commit 0e90096

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReflectionTemplateLib/rtl/erasure/aware_constructor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#pragma once
1313

14+
#include "RObject.h"
1415
#include "rtl_errors.h"
1516
#include "erase_constructor.h"
1617

@@ -30,7 +31,7 @@ namespace rtl::dispatch
3031
template<class ...args_t>
3132
static Return get_allocator()
3233
{
33-
return [](const detail::FunctorId& pFunctorId, alloc pAllocType, const detail::FunctorId& pClonerId, args_t...params)
34+
return [](const detail::FunctorId& pFunctorId, alloc pAllocType, const detail::FunctorId& pClonerId, args_t...params)-> Return
3435
{
3536
if constexpr (sizeof...(args_t) == 0 && !std::is_default_constructible_v<record_t>)
3637
{ //default constructor, private or deleted.

0 commit comments

Comments
 (0)