This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Generic questions on inline functions and linking


On 22/07/15 21:36 -0700, Tim Shen wrote:
Thanks for the detailed explanation of ODR. :)

Remember that what I described as a harmless ODR violation *is still
an ODR violation* and so undefined behaviour, but as soon as someone
uses -fno-exceptions or -fno-rtti they are using a non-standard
dialect of C++ which is not defined by the standard anyway.

So some variance from what the standard allows is to be expected when
using those options, especially when mixing objects with and without
those options. In practice it works OK as long as the library is
written with a little care.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]