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

Threaded View

  1. #1
    Join Date
    Aug 2005
    Location
    Netherlands, The
    Posts
    2,184

    functor parameter problem

    hi i have a problem.

    error: no matching function for call to `test1(int&, int)'

    Code:
    namespace test0 {
    
    	template<typename test10, typename test11>
    	const bool test1(bool&, const test10&, const test11&)
    	{
    		return(true);
    	}
    }
    
    		template<typename test10, typename test11, typename test12>
    		const bool test1(test10&, const test11&, const test12& = test0::test1)
    		{
                return(false);
    		}
    
    int main(void)
    {
        int x = 0;
        test1(x, 0);
    }
    i dont know why functor wrong.
    Last edited by Mitsukai; March 15th, 2007 at 10:10 AM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured