Boost logo

Boost :

Subject: Re: [boost] version conflicts: is there a solution?
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-06-25 10:17:13


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

On Thursday 25 June 2009, Edward Diener wrote:
> > Can you point to anything in the standard that supports your position?
>
> Where in the standard do you see any mention of an ODR violation
> occuring where there are no header files being distributed for inclusion
> by a source file which would create such a violation ?

There is the 3rd paragraph of the "one definition rule" section:

"Every program shall contain exactly one definition of every non-inline
function or object that is used in that program; no diagnostic required. The
definition can appear explicitly in the program, it can be found in the
standard or a user-defined library, or (when appropriate) it is implicitly
defined (see 12.1, 12.4 and 12.8). An inline function shall be defined in
every translation unit in which it is used."

Note they include "user-defined library".

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

iEYEARECAAYFAkpDhukACgkQ5vihyNWuA4VhtgCeOet1XlSbFWpwu5IH+Rv7m4Um
4cIAn233VLhH4+9Do0iky3PF2oql7eMY
=6y9C
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk