From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5b2dc2b8126f7044,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!hd10g2000vbb.googlegroups.com!not-for-mail From: David Sauvage Newsgroups: comp.lang.ada Subject: Ada bindings to C++ class templates Date: Sat, 5 Mar 2011 01:36:41 -0800 (PST) Organization: http://groups.google.com Message-ID: <92802151-a15a-444f-9224-3710a144d83c@hd10g2000vbb.googlegroups.com> NNTP-Posting-Host: 41.136.236.13 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1299317801 4548 127.0.0.1 (5 Mar 2011 09:36:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 5 Mar 2011 09:36:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: hd10g2000vbb.googlegroups.com; posting-host=41.136.236.13; posting-account=VT4k8QoAAAB0zUvVwUYyaKE5TB63pAuh User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:17884 Date: 2011-03-05T01:36:41-08:00 List-Id: Hi, I'm trying to know more about how to write Ada bindings to C++ class templates. Unfortunately, I have found no documentation concerning this subject. May be we could use the C++ STL vector class template [1] as a basis for the discussion & hints (if any). I would think that the Ada binding would start from a generic package. I would prefer to implement the necessary intermediate C layers to make the binding compiler portable if possible. (instead of using g++ - fdump-ada-spec for example) Any help & hints would be appreciate. [1] http://en.wikipedia.org/wiki/Vector_(C++) -- David