llvm::function_ref is preferable to std::function. It's smaller and faster
while still allowing lambdas, function pointers, and function objects
On Tue, Sep 27, 2016 at 4:35 PM Greg Clayton <gclay...@apple.com> wrote:

>
> > On Sep 27, 2016, at 3:43 PM, Zachary Turner via lldb-dev <
> lldb-dev@lists.llvm.org> wrote:
> >
> > One solution I've seen (I think boost does this as well) is to make a
> utility class called noncopyable that you can privately inherit from:
> >
> > class noncopyable {
> > public:
> >    noncopyable(const noncopyable &) = delete;
> >    noncopyable &operator=(const noncopyable &other) = delete;
> > };
> >
> > class Foo : private noncopyable {
> > };
> >
> That is fine for internal classes.
>
>
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to