error: 'class std::optional<std::pair<int, int> >' has no member named 'first'
1452 | int rval = ptr->first;
The optional container passes the first and second function members of std::pair through, which can be practical, but there seems to be missing an indirection. The line above should be:
The JNI of container classes generated by:
does't compile, with errors like:
The
optional
container passes thefirst
andsecond
function members ofstd::pair
through, which can be practical, but there seems to be missing an indirection. The line above should be: