Fernando Cacciola wrote:

[snip]

void recieve_async_message()
{
  optional rcv ;
  while ( !!(rcv = get_async_input()) && !timeout() )
    output(*rcv);
}
[snip]

Maybe it's a minor point, but I think the !! is really ugly. Have you considered the safe_bool idiom that's used in some other Boost libraries? (smart_ptr to name one.)

Regards,
Dirk Gerrits



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

Reply via email to