From: Sylwester A. <sa...@ig...> - 2012-04-05 22:23:23
|
Hi, On Apr 5, 2012, at 10:29 PM, Patrik Jonsson wrote: >> ... >> How can I explicitly disambiguate them? Probably this is trivial, but I'm >> not at all a C++ expert and I have not been able to find anything useful on the web > > You either need to remove your "using namespace blitz" and explicitly > qualify the blitz symbols you use, or you need to explicitly qualify > which scalar you are referring to... or use: using blitz::Array; using blitz::Range; using blitz::TinyVector; etc. instead of "using namespace blitz;" This will bring to the scope only the explicitely listed classes, and not all members of the blitz namespace incl. blitz::scalar. HTH, Sylwester -- http://www.igf.fuw.edu.pl/~slayoo/ Please consider your environmental responsibility before printing this e-mail. |