[Bro-Dev] min() and max() problem in util.h

Robin Sommer robin at icir.org
Wed Nov 24 10:09:58 PST 2010


To finish this, I think we can trust the compiler here to pick the
right version, or to complain if it can't.

I've had problems with overloading picking the wrong version in the
past as well, but I think that always involved pointers of some
form; there's some implicit cast that C++ does in that context that
can cause trouble; don't remember the details either though. But I'm
pretty sure for ints we are fine.

Robin

-- 
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org



More information about the bro-dev mailing list