Forward declarations
Posted by
Bojan Nikolic on
URL: http://quantlib.414.s1.nabble.com/Forward-declarations-tp9453.html
Hi,
It seems that a few recently added files to QuantLib trunk have harmless
but formally incorrect forward declarations of form (e.g., in
cpibond.hpp):
namespace QuantLib
{
class QuantLib::Schedule;
}
My compiler simply ignores these and issues a warning. They should be of
form:
namespace QuantLib {
class Schedule;
}
i.e., if you need to forward-declare a nested class you need to do
namespace A {
namespace B{
class C;
}
}
But in this case I think the forward declaration are unnecessary.
Best,
Bojan
--
Bojan Nikolic ||
http://www.bnikolic.co.uk/ql------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev