arximboldi / immer

Postmodern immutable and persistent data structures for C++ — value semantics at scale
https://sinusoid.es/immer
Boost Software License 1.0
2.51k stars 185 forks source link

Make pretty-printer loading more robust #256

Closed dhly-etc closed 1 year ago

dhly-etc commented 1 year ago

A while after making the initial commit in #255, it came to my attention that __file__ isn't actually a terribly reliable way to find the source filename. This change should make the loading process more robust, and work in more contexts.

dhly-etc commented 1 year ago

@arximboldi Sorry to pester you, but hopefully this is a quick one to review?

arximboldi commented 1 year ago

Sorry for the delays! Yes LGTM!