Skip to content

Commit

Permalink
Fix regression introduced by name demangling (fixes #3).
Browse files Browse the repository at this point in the history
Commit 7d3db69 (Use type name demangling with
GCC and Clang) added a dependency on std::string in typeid.hpp but did not
include the corresponding <string> header. Fixed.

Thanks to alex85k for reporting this.
  • Loading branch information
Oberon00 committed Jul 22, 2013
1 parent 9e74128 commit 7c33a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luabind/typeid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# include <cstdlib>
# include <cstring>
# include <string>
# include <typeinfo>

// boost/units/detail/utility.hpp
Expand All @@ -25,7 +26,7 @@
|| (defined(__sgi) && defined(__host_mips)) \
|| (defined(__hpux) && defined(__HP_aCC)) \
|| (defined(linux) && defined(__INTEL_COMPILER) && defined(__ICC))
# define LUABIND_SAFE_TYPEID
# define LUABIND_SAFE_TYPEID
# endif

namespace luabind {
Expand Down

0 comments on commit 7c33a72

Please sign in to comment.