From 0e9a8e6c3d86c59099108ccb4201040b4eade8e7 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 10 Oct 2007 13:30:35 +0200 Subject: [PATCH] move traits definition down --- src/simulator/timer-impl.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/simulator/timer-impl.h b/src/simulator/timer-impl.h index 346b457fc..bba3fa552 100644 --- a/src/simulator/timer-impl.h +++ b/src/simulator/timer-impl.h @@ -25,13 +25,6 @@ namespace ns3 { -template -struct TimerTraits -{ - typedef typename TypeTraits::ReferencedType>::NonConstType StoredType; - typedef const StoredType &ParameterType; -}; - class TimerImpl { public: @@ -89,6 +82,15 @@ struct TimerImplSix : public TimerImpl }; + +template +struct TimerTraits +{ + typedef typename TypeTraits::ReferencedType>::NonConstType StoredType; + typedef const StoredType &ParameterType; +}; + + template TimerImpl * MakeTimerImpl (FN fn)