data structures in Shogun is a bit different from std, treat them as pointers, i.e., C style. It's better to find some examples in Shogun code base to learn how to use them.