+ Reply to Thread
Results 1 to 3 of 3

Thread: What is error C2059: syntax error: template?

  1. #1

    What is error C2059: syntax error: template?

    Hi All,I am using VC 6.0.I get "error C2059: syntax error : ''template

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    37
    This issue is called out-of-class definition of Member Templates.

    You will need to define your member function in class itself.

    Example:

    Code:
    template<class T1>
    class CSample
    {
    public:
    	template<class T2> void ReturnValue(const T1  &objT1, const T2 &objT2)
            {
             }
    };

  3. #3
    Nice. Thank you.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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