Brad King wrote:
> when either nameQual or dirQual is true that is a compile-time constant
> so the "return result" line is truly unreachable in that instantiation.

Yes. I was assuming a compiler optimization would exist for that kind of 
thing.

> You need to use compile-time conditional code rather than "runtime"
> tests of compile-time constants.  This is true for the other template
> parameters too.

Done.

Thanks,

Steve.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to