Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Want to Know More

This is a discussion on Want to Know More within the C and C++ forums, part of the Programming Talk category; I wanted to try out some sample programs on member template explicit specialization .I have a doubt whether it is ...

  1. #1
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144

    Want to Know More

    I wanted to try out some sample programs on member template explicit specialization .I have a doubt whether it is possible to explicitly specialize the inner template. Are there any guidelines or rules for carrying out this Kindly help me to know more on this process?


  2. #2
    Ralph is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    114
    Yes as you have asked there are some process rules for handling member template explicit specialization. It is not possible to explicitly specialize the inner template. You cannot explicitly specialize the inner template without explicitly specializing the enclosing template type. So follow this and make a try with your program as otherwise you would get a compiler error for sure.


  3. #3
    Sandhya.Kishannag is offline Member Array
    Join Date
    Feb 2012
    Answers
    66
    It is not possible to specialize the inner templates unless the declaration shall not explicitly specialize a class member template if its enclosing class templates are not explicitly specialized.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...