Boost logo

Boost Users :

Subject: Re: [Boost-users] [Signals] Is connection::disconnect() "const-correct"?
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2011-05-05 08:50:24


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, May 04, 2011, Greg Hickman wrote:
> I agree that a connection has reference semantics and that
> connection::connected() therefore returns information about the thing
> being referenced (as opposed to the handle itself). According the logic
> above, however, doesn't the fact that connection::block() is non-const
> seem inconsistent? In other words, it would seem that
> connection::disconnect() and connection::block() should both be either
> const or non-const for consistency.

Yes, I agree.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk3CnREACgkQ5vihyNWuA4UliQCdGGHYOcxhq3qLKZr993GYJPgz
1/IAn0Xk/0nMxT1E08zqssVEaRZBH6Y4
=7Bt8
-----END PGP SIGNATURE-----


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net