Simple C# code correctly translates to C++