All pastes #561684 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-12 15:15 UTC
rendered paste body

// grille.hh
template <class T, int a, int b>
class grille
{
public:
  grille();

  T* operator[](const unsigned int x);
private:
  T tab[a][b];
};

template <class H, int x, int y>
std::ostream &operator<<(std::ostream &out, const grille<H, x, y> &g);



// grille.cc
template <class T, int a, int b>
grille<T,a,b>::grille()
{
}

template <class T, int a, int b>
T* grille<T,a,b>::operator[](const unsigned int x)
{
  return tab[x];
}

template <class H, int x, int y>
std::ostream &operator<<(std::ostream &out, const grille<H, x, y> &g)
{
  std::cout << "Test" << std::endl;
  return out;
}