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
Attempting to compile code using Vector::span() will give the following error:
In file included from src\test.cpp:1:
godot-cpp\include/godot_cpp/templates/vector.hpp: In instantiation of 'godot::Span<T> godot::Vector<T>::span() const [with T = int]':
src\test.cpp:7:11: required from here
7 | test.span();
| ~~~~~~~~~^~
godot-cpp\include/godot_cpp/templates/vector.hpp:95:63: error: 'const class godot::CowData<int>' has no member named 'span'
95 | _FORCE_INLINE_ Span<T> span() const { return _cowdata.span(); }
| ~~~~~~~~~^~~~
It seems that when Span was added from upstream godot some conversion functions in CowData were missed.
Steps to reproduce
#include<godot_cpp/templates/vector.hpp>usingnamespacegodot;voidtest() {
Vector<int> test;
test.span(); //This line gives an error
}
Activity