nihilus / snowman

Snowman decompiler
http://derevenets.com/
105 stars 15 forks source link

Include boost's is_reference.hpp and link against CMAKE_DL_LIBS #48

Closed xdarklight closed 8 years ago

xdarklight commented 8 years ago

This fixes a compile error (gcc complaining that is_reference is not declared) with boost 1.60.0 (on Arch Linux).

The original error was:

snowman/src/nc/common/CheckedCast.h: In function ‘typename boost::enable_if<boost::is_polymorphic<From>, To>::type nc::checked_cast(From&)’:
snowman/src/nc/common/CheckedCast.h:90:23: error: ‘is_reference’ is not a member of ‘boost’
         static_assert(boost::is_reference<To>::value, "Target type must be a reference");
nihilus commented 8 years ago

Thx