estdlib icon indicating copy to clipboard operation
estdlib copied to clipboard

estd::vector traditional_accessor failure on simple struct

Open malachib opened this issue 9 months ago • 2 comments

Given a struct:

struct Test
{
    float v1;
};

Given a vector:

estd::vector<Test, 20> v;

The operation:

v[0].v1

Cannot infer that v[0] ought to be a Test& and compilation fails. Same behavior with at Encountered while making Dreamer JSON playlist decoder

Relates directly to #88

Not exactly a bug since the original intended usage pattern does rest on lock/unlock paradigm

malachib avatar Apr 09 '25 19:04 malachib

Connects to a deeper problem - the well intentioned locking allocator is interfering with operations. In particular, it's mandating that lock/unlock paradigm apply even when layer1-layer3 are in effect - who by definition never lock

Furthermore, the locking paradigm was never fully realized - though I hold out hope

malachib avatar Apr 10 '25 03:04 malachib

Additionally, ESP-IDF even when explicitly attempting a lock or clock complains about a dangling reference

malachib avatar Apr 11 '25 01:04 malachib