Category: templates

Function template declaration order affects visibility (sometimes)

I’m trying to create a function: template <typename T> void doIt( T*& p ) { if ( !p ) { return; } T& ref = *p; getClassName( ref ); } where the behavior varies according to the type of p passed in. In particular, the version of getClassName called should depend upon the type of […]

Visual Studio 2008: How to install an item template

I have created an Item Template using the “Export Template” wizard. I opened up the XML file and made a couple of minor changes, then rezipped the package. Then I checked the item template into source control so that everyone on the team can access it if they want. But for the life of me […]