[lldb-dev] RFC: Break/Watchpoint refactor

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Tue Sep 27 17:48:51 PDT 2016


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 <gclayton at apple.com> wrote:

>
> > On Sep 27, 2016, at 3:43 PM, Zachary Turner via lldb-dev <
> lldb-dev at 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160928/4d90b407/attachment.html>


More information about the lldb-dev mailing list