I am trying to compile using -fvisibility=hidden but can not figure out how to change the visibility of a boost::error_info typedef can someone enlighten me? No matter where I put the DVEM_EXPORT in the typedef line compiler rejects it and nothing else short of editing the boost header to add the attribute there fixes the runtime problem.
#ifdef....
#define DVEM_EXPORT __attribute__((visibility("default")))
....
class DVEM_EXPORT UnsupportedDataTypeException : public dv::BaseException<> {};
struct DVEM_EXPORT errinfo_data_type_ {};
typedef boost::error_info<errinfo_data_type_, std::string> errinfo_data_type;