GalSim-developers/GalSim — pull request #50 by gbernstein (2012-03-24 15:13:37+00:00)
Title: Undefine hidden constructors, eliminate casts as RNG draws

Following Mike's advice, in Random.h the hidden copy constructors and assignment operators are now declared but not defined so that they don't exist. And I removed the cast operators from the RNGs so that any draw from them requires use of parenthesis,

PoissonDeviate pd(3.774);
double gain=1.4; // e per ADU
double pixel_value = pd() / gain;

is now needed, you can't do

double pixel_value = pd / gain;

Also updated examples/testRandom.cpp to reflect this change and have proper GalSim-approved format.