"If you have a value type as a function or method parameter, it is normally passed by value. For larger objects, this can cause a performance problem. In Visual Studio2013 and earlier, value types in C++/CX were always passed by value. In Visual Studio 2015 and later, you can pass value types by reference or by value."
That did not work for me, using value_struct& in a function signature had the compiler issue the:
Error C3987 'Set': signature of public member contains native type value_struct&... Works without the reference, Visual Studio 2015
What am I missing?