boostorg / exception

Boost.org exception module
http://boost.org/libs/exception
Boost Software License 1.0
15 stars 46 forks source link

fix(info): add support of error_info usage across shared libraries on… #26

Closed ledocc closed 4 years ago

ledocc commented 4 years ago

… MacOS

On MacOS, with apple-clang, std::type_info is not shared across dynamic library, so equality test of std::type_info based on address failed. Use std::type_info::name() instead.

ledocc commented 4 years ago

up cloning_test fail with clang 3.6 and 3.7, but this no related to my change, develop branch also fail

zajo commented 4 years ago

This is not a good idea, two different binaries may implement two different (hidden) types using the same name, which would now be treated as one.