I'm trying to port some C++ code from Windows to OS X (using Xcode).
The following code:
writePosition %= std::size(bufferL);
is generating an error:
No member named 'size' in namespace 'std'
How do I fix this?
std::size()
is available starting from C++17. Try enabling -std=c++17
for your compiler.
Also, double check that the source files contain #include <iterator>
, either directly, or indirectly by #include
'ing any of the following headers:
<array>
<deque>
<forward_list>
<list>
<map>
<regex>
<set>
<string>
<string_view>
<unordered_map>
<unordered_set>
<vector>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With