This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct


On 20 February 2016 at 23:35, H.J. Lu <hjl.tools@gmail.com> wrote:
> Can a compiler tell if a copy constructor or destructor is trivial
> from the class declaration without function body?

Yes, the mere presence of the declaration suffices to render it
non-trivial (unless explicitly declared "= default" like I did with
the default constructor, in which case there's no function body).


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