boostorg / typeof

Boost.org typeof module
http://boost.org/libs/typeof
12 stars 46 forks source link

enable use of msvc compiler option /permissive- #7

Closed DanielaE closed 7 years ago

DanielaE commented 7 years ago

The compiler hack used to emulate typeof on msvc no longer works when compiler option /permissive- is engaged. Rather than preying on a compiler bug take advantage of modern c++ instead.

Signed-off-by: Daniela Engert dani@ngrt.de

DanielaE commented 7 years ago

This applies to msvc 14.1 from Visual Studio 2017.

The full Boost test-suite passes with identical results as without this patch applied. This fixes ticket #12900.