Depth in C++
updated header file