Skip to content

Commit

Permalink
Rename aligner_type redefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur committed Jun 24, 2016
1 parent e57a4dc commit 18fb415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toonz/sources/include/tcg/alignment.h
Expand Up @@ -79,14 +79,14 @@ union aligner_type {

template <typename T>
union aligned_buffer {
typedef aligner_type<sizeof(_Aligner<T>) - sizeof(T)> aligner_type;
typedef aligner_type<sizeof(_Aligner<T>) - sizeof(T)> aligner_type_t;

aligner_type m_aligner;
aligner_type_t m_aligner;
char m_buf[sizeof(T)];

private:
TCG_STATIC_ASSERT(sizeof(_Aligner<T>) - sizeof(T) ==
sizeof(_Aligner<aligner_type>) - sizeof(aligner_type));
sizeof(_Aligner<aligner_type_t>) - sizeof(aligner_type_t));
};

//**************************************************************************
Expand All @@ -97,7 +97,7 @@ template <typename T>
struct alignment_traits {
static const int alignment = sizeof(_Aligner<T>) - sizeof(T);

typedef aligner_type<alignment> aligner_type;
typedef aligner_type<alignment> aligner_type_traits;
typedef aligned_buffer<T> buffer_type;
};

Expand Down

0 comments on commit 18fb415

Please sign in to comment.