File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -663,9 +663,11 @@ struct ModifiedArgument
663
663
664
664
// Peel off the none modifier. If it's included, it should always be last in the list.
665
665
template <TypeModifier Modifier = TypeModifier::None, TypeModifier... Other>
666
- static typename std::enable_if_t <TypeModifier::None == Modifier && sizeof ...(Other) == 0 , Type>
667
- require ( std::string_view name, const response::Value& arguments)
666
+ static typename std::enable_if_t <TypeModifier::None == Modifier, Type> require (
667
+ std::string_view name, const response::Value& arguments)
668
668
{
669
+ static_assert (sizeof ...(Other) == 0 , " None modifier should always be last" );
670
+
669
671
// Just call through to the non-template method without the modifiers.
670
672
return require (name, arguments);
671
673
}
You can’t perform that action at this time.
0 commit comments