https://github.com/root-project/root
Raw File
Tip revision: daebeae4a51bb0baae69656964030b091dada4e5 authored by Fons Rademakers on 08 November 2011, 13:23:37 UTC
tag patch release v5-30-04.
Tip revision: daebeae
t627.h
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/

#include <stdio.h>

class TGC {
 public:
  float operator()(int x=1) {
    printf("TGC::operator()(%d)\n",x);
    return (float)1.23*x;
  }
};

TGC dx;

TGC& GetDefaultGC() {
  printf("GetDefaultGC()\n");
  return dx;
}

void f(float x) {
  printf("f(x=%g)\n",x);
}
back to top