y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
|
example output:
y3c-stl terminated: undefined behavior detected (ub_access_nullptr)at y3c::wrap<int*>::operator*(): attempted to access the value of nullptr.Stack trace (most recent call first):#0 0x00000000000045a8 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/ptr-null.cc:5:133: int main() {5: int v = *a;6: }#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 0x00000000000044a4 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-ptr-nullポインタ型wrap: element_type型のデータへのポインタと、 このポインタ自体の生存状態を管理するクラスDefinition wrap.h:318Definition array.h:8