y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
|
example output:
y3c-stl terminated: undefined behavior detected (ub_out_of_range)at y3c::wrap<int*>::operator*(): attempted to access index 13, that is outside the bounds of size 5.Stack trace (most recent call first):#0 0x00000000000046c3 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/array-ptr.cc:8:186: y3c::ptr<int> p = &a[3];7: p += 10;8: std::cout << *p << std::endl;9: }#1 0x0000000000029d8f at /lib/x86_64-linux-gnu/libc.so.6#2 0x0000000000029e3f in __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6#3 0x0000000000004564 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-array-ptrDefinition array.h:8