What’s wrong with this code:
959 // we don't have a lot of entropy to work with here :\ 960 RtPoint2 random_pt( deterministic_float( node->center_luminance, rnd1, (uint32_t)(1280498143 * rnd0) ), 961 deterministic_float( data_pt->p, rnd1, (uint32_t)(3584308421 * rnd0) ) );
The compiler error:
foo.cpp:961:100: error: expected ';' before ')' token
Where’s the mismatching paren?
Answer (highlight to view): The “:\” smiley face extends its comment to the next line. My syntax highlighter didn’t pick this up.
There’s probably an underhanded c competition entry in here.
EDIT: It’s occurred to me that, based on the compiler error message, the compiler would have preferred I make a winky smiley face instead.
FWIW, I copied it into Vim and it immediately highlighted it as a comment. It took me a moment to realise why though. :P