[Developers] Help on traits
Mark Maunder
mmaunder at iattc.org
Mon Jul 14 13:02:35 PDT 2014
Hi,
I am working on using traits for growth functions. Steve provided me some example code and I have been trying to extend it. This looks like it uses templates inside templates and gets confusing. Attached is some example code and I would appreciate any help on debugging it. I think the problem is that for the same function parameter types I have two different return types, so I made two different traits. I think it is important to get this sorted out because it may be something we will use often in creating libraries of functions.
Thanks,
Mark
The selectivity special issue of the journal Fisheries Research is now published
http://www.sciencedirect.com/science/journal/01657836/158/supp/C
The Stock Synthesis special issue of the journal Fisheries Research
http://www.sciencedirect.com/science/journal/01657836/142
Mark Maunder
Head of the Stock Assessment Program
Inter-American Tropical Tuna Commission
8901 La Jolla Shores Dr.
La Jolla, CA 92037-1508, USA
Tel: (858) 546-7027
Fax: (858) 546-7133
mmaunder at iattc.org<mailto:mmaunder at iattc.org>
http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Mark+Maunder
Visit the Center for the Advancement of Population Assessment Methodology at
http://www.capamresearch.org/
Visit the AD Model Builder project at
http://admb-project.org/
See the following website for information on fisheries stock assessment http://www.fisheriesstockassessment.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140714/c3a8348c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CAPAM_growth.hpp
Type: application/octet-stream
Size: 6579 bytes
Desc: CAPAM_growth.hpp
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140714/c3a8348c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gtest.tpl
Type: application/octet-stream
Size: 1247 bytes
Desc: Gtest.tpl
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140714/c3a8348c/attachment-0001.obj>
More information about the Developers
mailing list