Posted by
Pavan Shah-2 on
URL: http://quantlib.414.s1.nabble.com/returning-a-map-int-stuct-from-my-member-function-in-my-class-tp13905.html
Hello,
I have a function that returns a map <int, struct> .
However, the compiler complains.
my function declaration in my class is as follows:
map <int, struct> test_class:: test function().
In my function,
I define a struct Rows.
and my map is
map<int,Rows> Options
.
..
. return Options;
compiler doesn't like that.
There are messages:
1) one that is related to map <int, struct> : "Expected either a definition or a tag name"
2)one at the return statement : "no suitable user -defined conversion from "..." exists.
Any ideas please? It should be something simple that I am missing in my code.
thanks
Pavan
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users