Re: c++/cli compiler oddity
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 07:54:34 -0800
Martin Lafferty wrote:
....
This does not compile. The constraint on T seems to be ignored.
if FuncB is written as follows:
generic<typename T> where T : ITest
public ref class B abstract : public A<T> {
public:
void FuncB() {
T x = Func();
x->Test();
}
};
It compiles! Is this expected behaviour?
That sounds like a bug to me. If you submit it to connect, please post the
URL here so others can vote on it.
-cd
PS: http://connect.microsoft.com/VisualStudio/Feedback
.
- Follow-Ups:
- Re: c++/cli compiler oddity
- From: Martin Lafferty
- Re: c++/cli compiler oddity
- References:
- c++/cli compiler oddity
- From: Martin Lafferty
- c++/cli compiler oddity
- Prev by Date: Re: Definition of Pure Virtual Function
- Next by Date: Re: inhibit compiler warning C4624 for a class hierarchy
- Previous by thread: c++/cli compiler oddity
- Next by thread: Re: c++/cli compiler oddity
- Index(es):