Skip to content

Commit

Permalink
type-traits.h: avoid potential recursive error
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Nov 19, 2023
1 parent 0fe11ff commit 123bb53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/micro-os-plus/type-traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ namespace micro_os_plus::micro_test_plus
using type = T;
};

#if defined(__DOXYGEN__)
// error: Detected potential recursive class relation between class micro_os_plus::micro_test_plus::type_traits::function_traits and base class micro_os_plus::micro_test_plus::type_traits::function_traits< decltype(&T::operator())>!
// https://github.com/doxygen/doxygen/issues/9915
#else
template <class T>
struct function_traits : function_traits<decltype (&T::operator())>
{
};
#endif

template <class R, class... Args_T>
struct function_traits<R (*) (Args_T...)>
Expand Down

0 comments on commit 123bb53

Please sign in to comment.