Concept DefaultConstructible vs type traits has_trivial_constructor

9 Apr
2009
9 Apr
'09
11:22 a.m.
Hi, What is the difference between the 2? For a type T, can it be DefaultConstructible and has_trivial_constructor<T> is false? Rds,

9 Apr
9 Apr
11:33 a.m.
Yes,
struct S
{
S(){}
};
S is default constructible but does not have a trivial ctor.
Regards,
Ovanes
On Thu, Apr 9, 2009 at 1:22 PM, Hicham Mouline
Hi,
What is the difference between the 2?
For a type T, can it be DefaultConstructible and has_trivial_constructor<T> is false?
Rds,
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
5799
Age (days ago)
5799
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hicham Mouline
-
Ovanes Markarian