10 Jun
2014
10 Jun
'14
10:41 a.m.
Glen Fernandes wrote:
In that case should I keep it within boost::alignment::detail:: ? -- If it was effectively an alignment_of-equivalent, it could live within boost::alignment:: --
No, I would like it to not be an implementation detail. We want to use it in smart_ptr. Let's follow the standard on references, then. It's not possible to place a reference in aligned_storage, so there's no alternative use case. Also, to be standard conforming, template<class T> struct alignment_of<T[]>: alignment_of<T> {};