• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SFINAE and template usage

 
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I'm at a very beginner's stage in learning C++, so I need your advice about SFINAE usage to handle types at runtime.

Let's suppose I have a template class which acts as Parameter for certain application. I want to treat string differently from other types.

I wrote following code:



It works, but the fact that it works doesn't imply that's a good code too, and I have the feeling it's a bit naive.

Can you give me any suggestion about how I may improve it ?

Any help is really appreciated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic