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

Threaded View

  1. #1
    Join Date
    Jan 2006
    Location
    Portugal
    Posts
    28

    Class template operator instantiation

    Hi!

    I'm using the following
    Code:
    class MyOut {
    template<typename T> operator<<(T value);
    }
    Now I need to instantiate some implementations but
    Code:
    template operator<< <int>(int value);
    gives a compiler error.

    So, how can I instantiate class template operators?
    Last edited by LSimao; January 17th, 2006 at 04:49 PM. Reason: Correction

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