summaryrefslogtreecommitdiffstats
path: root/examples/templ.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:29:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:29:47 (GMT)
commit6aa7383e23c850af36c25b87e5737a2e2f635083 (patch)
tree223d088e44a6b0956dd0437ed4851244b2e7f36c /examples/templ.cpp
parente04496cb647291b94c0b27b8babb127a79803579 (diff)
downloadDoxygen-6aa7383e23c850af36c25b87e5737a2e2f635083.zip
Doxygen-6aa7383e23c850af36c25b87e5737a2e2f635083.tar.gz
Doxygen-6aa7383e23c850af36c25b87e5737a2e2f635083.tar.bz2
mods for doxygen-0.49-990728
Diffstat (limited to 'examples/templ.cpp')
-rw-r--r--examples/templ.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/templ.cpp b/examples/templ.cpp
index c838c6e..3250abc 100644
--- a/examples/templ.cpp
+++ b/examples/templ.cpp
@@ -1,10 +1,10 @@
+
/*! A template class */
template<class T,int i=100> class Test
{
public:
Test();
Test(const Test &);
- friend void friendTempFunc(Test &, int=5);
};
/*! complete specialization */
@@ -15,7 +15,7 @@ template<> class Test<void *,200>
};
/*! A partial template specialization */
-template<class T> class Test< T * > : public Test<void *,200>
+template<class T> class Test<T *> : public Test<void *,200>
{
public:
Test();
@@ -27,11 +27,9 @@ template<class T,int i> Test<T,i>::Test() {}
/*! The copy constructor */
template<class T,int i> Test<T,i>::Test(const Test<T,i> &t) {}
-/*! A friend function of a template class */
-template<class T,int i> void friendTempFunc(Test<T,i> &t,int a) {}
+/*! The constructor of the partial specilization */
+template<class T> Test<T *>::Test() {}
/*! The constructor of the specilization */
template<> Test<void *,200>::Test() {}
-/*! The constructor of the partial specilization */
-template<class T> Test<T*>::Test() {}