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
After some experimentation, I found that you can avoid the error by swapping the order of #include <stdexcept> and #include "layout_stride.hpp" in layout_right.hpp so that #include <stdexcept> comes last:
There seems to be some bad interaction with the way libstdc++ is configured/compiled for ARM's bare-metal GNU toolchain (https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain) and this library that results in a compilation failure:
Godbolt reproduction based on the readme example: https://godbolt.org/z/s6qzafWP4
After some experimentation, I found that you can avoid the error by swapping the order of
#include <stdexcept>
and#include "layout_stride.hpp"
inlayout_right.hpp
so that#include <stdexcept>
comes last:mdspan/include/experimental/__p0009_bits/layout_right.hpp
Lines 21 to 22 in 9d0a451
I have not been able to determine why this would fix the issue, though.
The text was updated successfully, but these errors were encountered: