alloc/aligned: rename Successor to ChildT

This commit is contained in:
Danny Robson 2016-10-10 19:26:40 +11:00
parent 3dc31a9d10
commit 2c4f6f5526

View File

@ -19,12 +19,12 @@
namespace util::alloc {
/// wraps a child allocator and enforces a fixed alignment
template <typename Successor>
template <typename ChildT>
class aligned {
public:
///////////////////////////////////////////////////////////////////////
template <typename ...Args>
aligned (std::size_t _alignment, Args &&...args):
aligned (size_t _alignment, Args &&...args):
m_successor (std::forward<Args> (args)...),
m_alignment (_alignment)
{ ; }
@ -71,8 +71,8 @@ namespace util::alloc {
private:
Successor m_successor;
std::size_t m_alignment;
ChildT m_successor;
size_t m_alignment;
};
}