[ create a new paste ] login | about

Link: http://codepad.org/olcUuLHS    [ raw code | fork ]

C++, pasted on Sep 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
template<class T, int K, class Enable = void>
struct LODPaintFunc
{
inline static void Execute(T * controller, QGraphicsItem * item, QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget)
{
}
};
template<class T>
struct LODPaintFunc<T,0,typename boost::enable_if<IsRoute<T>>::type>
{
	inline static void Execute(T * controller, QGraphicsItem * item, QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget)
	{
	}
};

template<class T>
struct LODPaintFunc<T,1,typename boost::enable_if<IsRoute<T>>::type>
{
	inline static void Execute(T * controller, QGraphicsItem * item, QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget)
	{
		LODPaintFunc<T,0>::Execute(controller, item, painter,option ,widget);


Create a new paste based on this one


Comments: