Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Ambiguous Symbol -- Compiler Error C2872

AddThis Social Bookmark Button
I recently encountered the Ambiguous Symbol error, specifically: “error C2872: 'IMasterLoader' : ambiguous symbol” when using an interface I wrote in C# with a class built in C++.
1: namespace IMasterLoader 2: { 3: public interface IMasterLoader where T : class 4: { 5: bool Load(T master, ref string strError); 6: } 7: }
 
Code producing the error:
1: // LmCellSectorLog.h
2: #pragma once 3: using namespace System; 4: using namespace System::Collections::Generic; 5: using namespace System::Data; 6:   7: namespace LmCellSectorLog { 8: using namespace IMasterLoader; 9: public ref class CLmCellSectorLogLoader : IMasterLoader 10: { 11: public: 12: virtual bool Load(CLmCellSectorLogMaster^ master, String^% strError); 13: ...(Read whole news on source site)

Home : Blog List : Tom Hines (writinThatCode.com) : Ambiguous Symbol -- Compiler Error C2872