Fixes to build with gcc 4.0.
authorSteve Reinhardt <stever@eecs.umich.edu>
Sat, 3 Sep 2005 01:30:02 +0000 (21:30 -0400)
committerSteve Reinhardt <stever@eecs.umich.edu>
Sat, 3 Sep 2005 01:30:02 +0000 (21:30 -0400)
sim/param.hh:
    Add "template<>" to explicit template specialization.

--HG--
extra : convert_revision : 05e2f4ad8141a8782fe09a0b6824baf56c9fc957

sim/param.hh

index 93e1697783b95befb24e692d3294c5c28c92417a..4a1b8bda1185af69b0d3149a61904d3476575056 100644 (file)
@@ -762,12 +762,14 @@ class SimObjectVectorParam<T *> : public SimObjectBaseParam
 // automatically invoked by REGISTER_SIM_OBJECT() (see sim_object.hh).
 //
 #define DEFINE_SIM_OBJECT_CLASS_NAME(CLASS_NAME, OBJ_CLASS)            \
+template<>                                                             \
 void                                                                   \
 SimObjectParam<OBJ_CLASS *>::showType(std::ostream &os)        const           \
 {                                                                      \
     os << CLASS_NAME;                                                  \
 }                                                                      \
                                                                         \
+template<>                                                             \
 void                                                                   \
 SimObjectVectorParam<OBJ_CLASS *>::showType(std::ostream &os) const    \
 {                                                                      \