dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: After downgrading to Visual Studio 2010, I just couldn't compile this snippet

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    After downgrading to Visual Studio 2010, I just couldn't compile this snippet

    Due to the reason of incompatibility of certain sub-projects, I had to resort to downgrade to visual studio 2010
    for the time being, Just wonder why this won't compile on 2010?
    Any ideas?
    Thanks
    Jack

    Code:
    template<typename T>
    class TimeAStarOpenCloseMap {
    public:
    	TimeAStarOpenCloseMap<T>() : TimeAStarOpenCloseMap<T>(262144) {
    
    	}
    
    	TimeAStarOpenCloseMap<T>(int size)
    	{	
    		Count = 0;
    		m_Map.clear();
    		m_Map.resize(size);
    		
    	}

  2. #2
    Join Date
    Jun 2009
    Location
    France
    Posts
    2,513

    Re: After downgrading to Visual Studio 2010, I just couldn't compile this snippet

    https://msdn.microsoft.com/en-us/library/hh567368.aspx

    Delegating constructors are not supported in Visual Studio 2010.
    Is your question related to IO?
    Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
    It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)