mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
make gd::vector satisfy value_type
This commit is contained in:
parent
d2536f95ce
commit
61fd9a50d7
1 changed files with 4 additions and 0 deletions
|
@ -283,6 +283,8 @@ namespace gd {
|
|||
template <typename T>
|
||||
class GEODE_DLL vector {
|
||||
public:
|
||||
using value_type = T;
|
||||
|
||||
operator std::vector<T>() {
|
||||
std::vector<T> out;
|
||||
|
||||
|
@ -459,6 +461,8 @@ namespace gd {
|
|||
template <typename T>
|
||||
class GEODE_DLL vector {
|
||||
public:
|
||||
using value_type = T;
|
||||
|
||||
operator std::vector<T>() {
|
||||
return m_internal;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue