March 14th, 2011, 04:32 PM
Attempting to take the address of a member function template succeeds when the enclosing class is hardcoded but fails when it is passed to a template. The code:
struct AType
{
double...
March 3rd, 2010, 08:50 AM
An interface in C++/CLI can have operators as static functions of the interface. If I code an implicit cast operator for an interface the compiler accepts it:
// VC9ClrConsoleApplication.cpp :...
February 24th, 2010, 08:29 PM
In C++/CLI if I add an operator to an interface class and implement that interface in a ref class, the operator is not recognized for the ref class. But if I add an operator to a base ref class and...
February 8th, 2010, 03:15 PM
It has been explained to me elsewhere that because one can always get an iterator from a reverse_iterator, using the reverse_iterator::base() member function, there is no need to have erase also take...
February 7th, 2010, 10:47 AM
I believe you misunderstand the reverse_iterator. This is because the actual elements "pointed to" by the reverse_iterator are just as valid as the elements "pointed to" by the normal "iterator" no...
February 7th, 2010, 01:38 AM
I guess the question is really why the 'erase' functions are specified in terms of only iterator and not in terms of reverse_iterator also. After all a reverse_iterator will position the end-user...
February 6th, 2010, 10:22 PM
In the two forms of vector::erase:
iterator erase(iterator position);
iterator erase(iterator first, iterator last);
can the 'iterator' mentioned be a vector::const_iterator,...
February 6th, 2010, 12:02 AM
The CLSCompliant attribute does not work in C++/CLI. You can see my report on this some time ago at...
February 4th, 2010, 01:41 PM
Is there any .Net framework classes which deal in file associations ? I am looking for the .Net equivalent of the Win32 shell functions "AssocQueryString" and "FindExecutable".
February 4th, 2010, 01:34 PM
In the MSDN article on "C++ Stack Semantics for Reference Types" it says that:
"A compiler-generated assignment operator will follow the usual standard C++ rules with the following additions:
...
December 25th, 2003, 09:06 AM
According to the CLS specification, the accessibility of the methods for adding, removing, and raising an event must be identical. There appear to be a few problems with this:
1) According to the...