Results 1 to 25 of 25

Thread: Adding To A Class

Threaded View

  1. #12
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Code:
    #include <string>
    
    template<typename E, typename T = std::char_traits<E>, typename A = std::allocator<E> >
    class my_basic_string : public std::basic_string<E, T, A>
    {
    public:
      /**/ trim(/**/);
      // your new functions here
    };
    
    typedef my_string my_basic_string<char>;
    Should work, methinks.

    Z.
    Last edited by Zaei; Jun 6th, 2003 at 07:37 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