|
Boost : |
Subject: Re: [boost] [XInt] review
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-09 20:40:51
At Wed, 9 Mar 2011 10:52:35 -0500,
Chad Nelson wrote:
> So far as I've been able to determine, a C++ struct with some
> non-virtual functions, and that doesn't inherit from anything, acts
> like POD in every case. There's no need for a vtable or any other
> appended data that I've been able to imagine, and there certainly isn't
> on the two compilers I've directly tested (MSVC on Windows and GCC on
> Ubuntu Linux).
Hi Chad,
That's really not a good enough reason to depend on it. Except in
very exceptional circumstances, we try to ensure that all code in
Boost conforms to the letter of the standard, rather than relying on
the actual behavior of popular implementations.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk