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

Threaded View

  1. #1
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    C++ templates without arguments

    Some reading through C++ code I come across template deceleration without any type , I have tested the code it compiles too
    Code:
    template<>
    class abc
    {
    
    }
    similarly template usage
    Code:
    abc<> a;
    could some one please why this is so.

    example of such usage can be found here
    http://www.boost.org/doc/libs/1_39_0/libs/random/
    Last edited by aamir121a; January 23rd, 2013 at 03:36 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