Please help
-
Hi! Recently i downloaded an article from this page. This project was programmed in C++ with managed extensions and serves as a .NET Wrapper around a existing C++ implementation of random generators and distributions. I added this project to my solution that consist of a C# windows application. Under VS.NET 2003 everything worked well and i could use the wrapped random generators and distributions. Unfortunately, i had to move my solution back to VS.NET 2002. My C# windows application still works well, but the downloaded project doesn't get compiled. I receive the following errors, which i noted besides the lines that generate them:
template struct ptr_helper { typedef T value_type; typedef T& reference_type; //error C2529: 'reference_type' : reference to reference is illegal typedef const T& rvalue_type; //error C2529: 'reference_type' : reference to reference is illegal static reference_type ref(T& r) { return r; } //error C2529: 'reference_type' : reference to reference is illegal static const T& ref(const T& r) { return r; } //error C2529: 'reference_type' : reference to reference is illegal };
This struct is declared in a header-file of the existing C++ implementation that gets wrapped by the downloaded project. Why can i compile this under VS.NET 2003 but not in VS.NET2002? What i can i do? THX in advance