Return-Path: Delivered-To: apmail-incubator-stdcxx-user-archive@www.apache.org Received: (qmail 72719 invoked from network); 16 Feb 2006 01:39:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Feb 2006 01:39:59 -0000 Received: (qmail 19261 invoked by uid 500); 16 Feb 2006 01:39:59 -0000 Delivered-To: apmail-incubator-stdcxx-user-archive@incubator.apache.org Received: (qmail 19224 invoked by uid 500); 16 Feb 2006 01:39:58 -0000 Mailing-List: contact stdcxx-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-user@incubator.apache.org Delivered-To: mailing list stdcxx-user@incubator.apache.org Received: (qmail 19213 invoked by uid 99); 16 Feb 2006 01:39:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 17:39:58 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.17.213.84] (HELO bco-exchange.bco.roguewave.com) (12.17.213.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 17:39:57 -0800 Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id ZGW28X1X; Wed, 15 Feb 2006 18:39:31 -0700 Message-ID: <43F3D8D6.4010400@roguewave.com> Date: Wed, 15 Feb 2006 18:43:50 -0700 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-user@incubator.apache.org Subject: Re: Incomplete types - compilation problem References: <20060215231134.6717.qmail@web82211.mail.mud.yahoo.com> In-Reply-To: <20060215231134.6717.qmail@web82211.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dipak Bapatla wrote: > Hi, > > I am trying to use Boost built using stdcxx on Solaris. I was able to > build the date_time library but when I try to compile a test program I > end up with errors related to incomplete types. I have narrowed the > issue to the following code > > #include > #include > using namespace std; > template > struct C { > typedef multimap maps; > typedef typename maps::value_type value_type; All containers require that their element types be complete types. Except in the bodies of its member functions (and a few other cases) a class is considered a complete type after the closing curly bracket. So the above is undefined. We have an enhancement request in our (Rogue Wave) database to allow incomplete types in some of our containers (in particular in map) but the enhancement is not implemented yet. Let me add your case to the issue. Martin