You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
int rval = (*ptr)->first;
The text was updated successfully, but these errors were encountered:
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:int rval = (*ptr)->first;
The text was updated successfully, but these errors were encountered: