boostorg / bimap

Boost.org bimap module
http://boost.org/libs/bimap
20 stars 48 forks source link

population_bimap example fails to compile #39

Open jefftrull opened 11 months ago

jefftrull commented 11 months ago

gcc 11.4 fails to compile this example with an error template argument 1 is invalid on this line:

https://github.com/boostorg/bimap/blob/e5c2657a9e2d6184622ad4ccd1373e6c60a7efca/example/population_bimap.cpp#L46

Specifying the Boost namespace on optional fixes it (you cannot use std here).