Minor layout changes

This commit is contained in:
John Wellbelove 2017-01-31 21:08:16 +00:00
parent 73e65ae023
commit a470d4f8c9

View File

@ -711,7 +711,7 @@ namespace etl
{
STATIC_ASSERT(Type_Is_Supported<T>::value, "Unsupported type");
new(static_cast<T*>(data)) T(value);
new (static_cast<T*>(data)) T(value);
type_id = Type_Id_Lookup<T>::type_id;
}
@ -723,14 +723,14 @@ namespace etl
{
switch (other.type_id)
{
case 0: new(static_cast<T1*>(data)) T1(other.get<T1>()); break;
case 1: new(static_cast<T2*>(data)) T2(other.get<T2>()); break;
case 2: new(static_cast<T3*>(data)) T3(other.get<T3>()); break;
case 3: new(static_cast<T4*>(data)) T4(other.get<T4>()); break;
case 4: new(static_cast<T5*>(data)) T5(other.get<T5>()); break;
case 5: new(static_cast<T6*>(data)) T6(other.get<T6>()); break;
case 6: new(static_cast<T7*>(data)) T7(other.get<T7>()); break;
case 7: new(static_cast<T8*>(data)) T8(other.get<T8>()); break;
case 0: new (static_cast<T1*>(data)) T1(other.get<T1>()); break;
case 1: new (static_cast<T2*>(data)) T2(other.get<T2>()); break;
case 2: new (static_cast<T3*>(data)) T3(other.get<T3>()); break;
case 3: new (static_cast<T4*>(data)) T4(other.get<T4>()); break;
case 4: new (static_cast<T5*>(data)) T5(other.get<T5>()); break;
case 5: new (static_cast<T6*>(data)) T6(other.get<T6>()); break;
case 6: new (static_cast<T7*>(data)) T7(other.get<T7>()); break;
case 7: new (static_cast<T8*>(data)) T8(other.get<T8>()); break;
default: break;
}
@ -747,7 +747,7 @@ namespace etl
STATIC_ASSERT(Type_Is_Supported<T>::value, "Unsupported type");
destruct_current();
new(static_cast<T*>(data)) T(value);
new (static_cast<T*>(data)) T(value);
type_id = Type_Id_Lookup<T>::type_id;
return *this;
@ -765,14 +765,14 @@ namespace etl
switch (other.type_id)
{
case 0: new(static_cast<T1*>(data)) T1(other.get<T1>()); break;
case 1: new(static_cast<T2*>(data)) T2(other.get<T2>()); break;
case 2: new(static_cast<T3*>(data)) T3(other.get<T3>()); break;
case 3: new(static_cast<T4*>(data)) T4(other.get<T4>()); break;
case 4: new(static_cast<T5*>(data)) T5(other.get<T5>()); break;
case 5: new(static_cast<T6*>(data)) T6(other.get<T6>()); break;
case 6: new(static_cast<T7*>(data)) T7(other.get<T7>()); break;
case 7: new(static_cast<T8*>(data)) T8(other.get<T8>()); break;
case 0: new (static_cast<T1*>(data)) T1(other.get<T1>()); break;
case 1: new (static_cast<T2*>(data)) T2(other.get<T2>()); break;
case 2: new (static_cast<T3*>(data)) T3(other.get<T3>()); break;
case 3: new (static_cast<T4*>(data)) T4(other.get<T4>()); break;
case 4: new (static_cast<T5*>(data)) T5(other.get<T5>()); break;
case 5: new (static_cast<T6*>(data)) T6(other.get<T6>()); break;
case 6: new (static_cast<T7*>(data)) T7(other.get<T7>()); break;
case 7: new (static_cast<T8*>(data)) T8(other.get<T8>()); break;
default: break;
}