Boost logo

Boost :

Subject: [boost] [type_traits] Testing for copy constructor
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-04-19 01:16:48


Does one use has_trivial_copy or has_nothrow_copy to determine if a
class has a copy constructor or not ?

I am writing some code that can do different things depending on whether
a particular class has a copy constructor or does not have a copy
constructor. I do not really care whether the copy constructor is a
compiler generated copy constructor or not.


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