Skip to content

Commit

Permalink
StdCompiler: Constrain CompileFunc fallback to class types and union …
Browse files Browse the repository at this point in the history
…types to fix an ambiguous match with Clang
  • Loading branch information
Fulgen301 committed Nov 1, 2023
1 parent e084b36 commit 1966867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StdCompiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class StdCompiler
};

// Standard compile funcs
template <class T>
template <class T> requires (std::is_class_v<T> || std::is_union_v<T>)
inline void CompileFunc(T &rStruct, StdCompiler *pComp)
{
// If the compiler doesn't like this line, you tried to compile
Expand Down

0 comments on commit 1966867

Please sign in to comment.