[boost] Does boost have a way to get type name at compile time?

6 views
Skip to first unread message

Ivan Matek via Boost

unread,
Nov 4, 2021, 4:22:57 PM11/4/21
to boost, Ivan Matek
I am aware of hacks/magic with __PRETTY_FUNCTION__
<https://stackoverflow.com/questions/69624128/parameter-pack-sorting-or-equivalent-behavior/69624812#69624812>but
I wonder if there is a portable boost way to do that?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Peter Dimov via Boost

unread,
Nov 4, 2021, 4:25:04 PM11/4/21
to bo...@lists.boost.org, Peter Dimov
Ivan Matek wrote:
>
> I am aware of hacks/magic with __PRETTY_FUNCTION__
> <https://stackoverflow.com/questions/69624128/parameter-pack-sorting-
> or-equivalent-behavior/69624812#69624812>but
> I wonder if there is a portable boost way to do that?

https://www.boost.org/doc/libs/1_77_0/doc/html/boost/typeindex/ctti_type_index.html
I suppose.
Reply all
Reply to author
Forward
0 new messages