Skip to content

Commit c7a6b18

Browse files
committed
Mention bind_front in static_assert(_Fn != nullptr) message
1 parent 4f8d61f commit c7a6b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__functional/bind_front.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ template <auto _Fn, class... _Args>
8787
static_assert((is_move_constructible_v<decay_t<_Args>> && ...),
8888
"bind_front requires all decay_t<Args> to be move constructible");
8989
if constexpr (using _Ty = decltype(_Fn); is_pointer_v<_Ty> || is_member_pointer_v<_Ty>)
90-
static_assert(_Fn != nullptr, "f cannot be equal to nullptr");
90+
static_assert(_Fn != nullptr, "bind_front: f cannot be equal to nullptr");
9191

9292
if constexpr (sizeof...(_Args) == 0)
9393
return __nttp_bind_without_bound_args_t<_Fn>{};

0 commit comments

Comments
 (0)