diff --git a/src/variant.h b/src/variant.h index 767432a8..99641bbe 100644 --- a/src/variant.h +++ b/src/variant.h @@ -711,7 +711,7 @@ namespace etl { STATIC_ASSERT(Type_Is_Supported::value, "Unsupported type"); - new(static_cast(data)) T(value); + new (static_cast(data)) T(value); type_id = Type_Id_Lookup::type_id; } @@ -723,14 +723,14 @@ namespace etl { switch (other.type_id) { - case 0: new(static_cast(data)) T1(other.get()); break; - case 1: new(static_cast(data)) T2(other.get()); break; - case 2: new(static_cast(data)) T3(other.get()); break; - case 3: new(static_cast(data)) T4(other.get()); break; - case 4: new(static_cast(data)) T5(other.get()); break; - case 5: new(static_cast(data)) T6(other.get()); break; - case 6: new(static_cast(data)) T7(other.get()); break; - case 7: new(static_cast(data)) T8(other.get()); break; + case 0: new (static_cast(data)) T1(other.get()); break; + case 1: new (static_cast(data)) T2(other.get()); break; + case 2: new (static_cast(data)) T3(other.get()); break; + case 3: new (static_cast(data)) T4(other.get()); break; + case 4: new (static_cast(data)) T5(other.get()); break; + case 5: new (static_cast(data)) T6(other.get()); break; + case 6: new (static_cast(data)) T7(other.get()); break; + case 7: new (static_cast(data)) T8(other.get()); break; default: break; } @@ -747,7 +747,7 @@ namespace etl STATIC_ASSERT(Type_Is_Supported::value, "Unsupported type"); destruct_current(); - new(static_cast(data)) T(value); + new (static_cast(data)) T(value); type_id = Type_Id_Lookup::type_id; return *this; @@ -765,14 +765,14 @@ namespace etl switch (other.type_id) { - case 0: new(static_cast(data)) T1(other.get()); break; - case 1: new(static_cast(data)) T2(other.get()); break; - case 2: new(static_cast(data)) T3(other.get()); break; - case 3: new(static_cast(data)) T4(other.get()); break; - case 4: new(static_cast(data)) T5(other.get()); break; - case 5: new(static_cast(data)) T6(other.get()); break; - case 6: new(static_cast(data)) T7(other.get()); break; - case 7: new(static_cast(data)) T8(other.get()); break; + case 0: new (static_cast(data)) T1(other.get()); break; + case 1: new (static_cast(data)) T2(other.get()); break; + case 2: new (static_cast(data)) T3(other.get()); break; + case 3: new (static_cast(data)) T4(other.get()); break; + case 4: new (static_cast(data)) T5(other.get()); break; + case 5: new (static_cast(data)) T6(other.get()); break; + case 6: new (static_cast(data)) T7(other.get()); break; + case 7: new (static_cast(data)) T8(other.get()); break; default: break; }