Opened 7 years ago

Last modified 7 years ago

#11707 new Bugs

Locale facets have hidden visibility

Reported by: Andrey Semashev Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

When the application or another library is compiled with hidden visibility by default, Boost.DateTime IO facets end up having hidden visibility as well. This breaks libstdc++ locale operations, such as has_facet and use_facet, as these operations are based on dynamic_cast.

Boost.DateTime should work regardless of the default visibility mode the application chooses. All facet types, as well as the types that can be used in their template parameters, should be marked with BOOST_SYMBOL_VISIBLE.

Change History (1)

comment:1 by Andrey Semashev, 7 years ago

Note: See TracTickets for help on using tickets.