boostorg / boostorg/bimap

population_bimap example fails to compile

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
26
Forks
49
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.