mirror of
https://github.com/boostorg/endian.git
synced 2025-08-02 14:04:29 +02:00
Better fix that works with more compilers, old and new, VC++ and GCC.
This commit is contained in:
@@ -74,7 +74,7 @@ namespace
|
|||||||
++v; // verify integer_cover_operators being applied to this type -
|
++v; // verify integer_cover_operators being applied to this type -
|
||||||
// will fail to compile if no endian<> specialization is present
|
// will fail to compile if no endian<> specialization is present
|
||||||
|
|
||||||
Endian x = v+v;
|
Endian x(v+v);
|
||||||
if ( x == x ) // silence warning
|
if ( x == x ) // silence warning
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -61,6 +61,7 @@
|
|||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
</PrecompiledHeader>
|
</PrecompiledHeader>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
Reference in New Issue
Block a user