"Kevin Atkinson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, 1 Mar 2003, Thorsten Ottosen wrote:
>
> > First I want to say that I'm not experienced with multitherading, but I
> > would like to see a standard lib
> > to solve these situations.
> >
> > A small question about enforcing correct parameter passing: you have
these
> > typedefs :
> >
> >   // These locks should never be passed by value to functions.
> >   // Instead use the following typedef to pass by reference:
> >   typedef const LockOnly   & WillOnlyLock;
> >   typedef const Lock       & WillLock;
> >   typedef const UnlockOnly & WillOnlyUnlock;
> >   typedef const Unlock     & WillUnlock;
> >
> > Is this the best way to enforce this? Why not just make lock objects
> > noncopyable?
>
> Um, they are.  This typedef are strictly for convenience and readability.

what convenience and what readability? C++ programmers are use to const XX&
parameters.
Having four extra names makes the concept harder to understand.

regards

Thorsten



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to