Namespaces
Variants
Views
Actions

Talk:cpp/concept/FunctionObject

From cppreference.com

[edit] Standard Library

unique_ptr requires a FunctionObject which isn't Callable? huh? Jwakely (talk) 08:05, 22 November 2014 (PST)

That's from 20.8.1.2[unique.ptr.single]p1 "A client-supplied template argument D shall be a function object type (20.9), ...". This page describes the function object type as defined by 20.9. Can you use a pointer to data member as a deleter? --Cubbi (talk) 11:10, 22 November 2014 (PST)