https://github.com/root-project/root
Raw File
Tip revision: 9d1aed171272a4ee709a8c585eee40fbfefbd355 authored by Fons Rademakers on 24 October 2011, 09:50:38 UTC
tag patch release v5-30-03.
Tip revision: 9d1aed1
t1011.h
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/
// 030211defaulttmppara

#include <iostream>
using namespace std;

namespace NS {

template <typename R> class Marshal {
 public:
  Marshal() {}
  ~Marshal() {}
};

template <class R,class Marsh=Marshal<R> > class Something {
 public:
  Something() {}
  ~Something() {}
  void no_op() { std::cout << "fully templated version\n"; }
};

}

//using namespace NS;

class MyClass {
 public:
  MyClass() {}
  ~MyClass() {}
  NS::Something<int> something;
};

#ifdef __MAKECINT__
#pragma link C++ nestedclasses;
#pragma link C++ nestedtypedefs;
#pragma link C++ namespace NS;
#pragma link C++ class NS::Marshal<int>;
#pragma link C++ class MyClass;
#endif

back to top