View Single Post
Old 08-31-2005, 11:01 AM   #25 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
I didnt follow this thread, I just wanted to say theres probably no point in passing bool's by reference OR by pointer. Really. Do a sizeof(bool) and a sizeof(bool*) and I guarantee they're the same size. If you want the values to stick after the function changes them, use pass by reference since you're using C++.

void change(bool& foo);
fp_unit is offline   Reply With Quote