Are smart pointers full implemented in Mbed OS?

Does anyone know if there are any limitations with using Smart Pointers in C++ in Mbed OS?

I happened to try the following code snippet:

    std::shared_ptr<int[]> arr = std::shared_ptr<int[]>(new int[20]);
    arr[0] = 0;

This won’t compile in Mbed Studio, but does in Linux (g++ and Clang, C++ 11 onwards).

which compiler are you using in Mbed Studio?

See my answer here: Embedded, Mbed OS & Smart pointers - #5 by ladislas

The default - ARM C6