tmpl/expldef1.cpp

The following code example is taken from the book
Object-Oriented Programming in C++
by Nicolai M. Josuttis, Wiley, 2002
© Copyright Nicolai M. Josuttis 2002


#include <string>
#include "expldef.hpp"

// explicitly instantiate necessary function template
template const int& max(const int&, const int&);

// explicitly instantiate necessary class templates
template CPPBook::Stack<int>;
template CPPBook::Stack<std::string>;