Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
boost::variant compile error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
georg.kelle...@lfu.bayern.de  
View profile  
 More options Nov 9 2012, 2:48 am
From: <Georg.Kelle...@lfu.bayern.de>
Date: Fri, 9 Nov 2012 07:44:20 +0000
Local: Fri, Nov 9 2012 2:44 am
Subject: [Boost-users] boost::variant compile error
Hi,

i'd like to build a heterogenous container based on the boost::variant datastructure. My code looks like this:
// forward-Deklarationen:
class fExport FB_Ordered;
class fExport FB_Dictionary;

// Typedefs
typedef boost::variant<int, std::string> keydicttype;
typedef boost::variant<
        int, std::string, date, ptime,
        boost::recursive_wrapper<FB_Dictionary>,
        boost::recursive_wrapper<FB_Ordered>> valuedicttype;
typedef boost::container::map<keydicttype, valuedicttype> basedict;

C:\dev\boost_1_52_0\boost/checked_delete.hpp(32) : error C2027: use of undefined Type "FB_Ordered"

what i want to do is to create a container fb_dictionary which can hold datatypes that are listed in the valuedicttype and which can accept keyvalues of int and string (see above). fb_ordered is another container defined in a diferent header file so i need the forward declarations. Could anybody please give me a hint in the right direction?  I am using vs2008.

Thanks for help,
Georg
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Lee Hellrung, Jr.  
View profile  
 More options Nov 9 2012, 9:14 am
From: "Jeffrey Lee Hellrung, Jr." <jeffrey.hellr...@gmail.com>
Date: Fri, 9 Nov 2012 06:12:49 -0800
Local: Fri, Nov 9 2012 9:12 am
Subject: Re: [Boost-users] boost::variant compile error

On Thu, Nov 8, 2012 at 11:44 PM, <Georg.Kelle...@lfu.bayern.de> wrote:
> Hi,

> i'd like to build a heterogenous container based on the boost::variant
> datastructure. My code looks like this:
> // forward-Deklarationen:
> class fExport FB_Ordered;
> class fExport FB_Dictionary;

What's fExport?

A full, expected-to-compile example is always helpful. But the errors I'm
getting with the above typedefs seem more related to the lack of this
fExport keyword you're using. If I remove the fExport stuff then all the
typedefs compile fine, and I don't get the undefined type error until I try
to instantiate basedict (obviously; FB_Ordered and FB_Dictionary need to be
defined by then).

- Jeff

_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Watanabe  
View profile  
 More options Nov 9 2012, 10:43 am
From: Steven Watanabe <watanab...@gmail.com>
Date: Fri, 09 Nov 2012 07:42:56 -0800
Local: Fri, Nov 9 2012 10:42 am
Subject: Re: [Boost-users] boost::variant compile error
AMDG

On 11/08/2012 11:44 PM, Georg.Kelle...@lfu.bayern.de wrote:

FP_Ordered has to be complete at the point where
the destructor of variant is instantiated.  The
same thing goes for FB_Dictionary.

In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
georg.kelle...@lfu.bayern.de  
View profile  
 More options Nov 13 2012, 1:35 am
From: <Georg.Kelle...@lfu.bayern.de>
Date: Tue, 13 Nov 2012 06:33:44 +0000
Local: Tues, Nov 13 2012 1:33 am
Subject: Re: [Boost-users] boost::variant compile error

Hi Jeffrey,

thanks for your help. The fexport keyword was to decide if i build a dll or another application that is using my class. I removed it since my module will compile to a static library and until now all works fine.

greetings,
Georg

________________________________
Von: boost-users-boun...@lists.boost.org [mailto:boost-users-boun...@lists.boost.org] Im Auftrag von Jeffrey Lee Hellrung, Jr.
Gesendet: Freitag, 9. November 2012 15:13
An: boost-us...@lists.boost.org
Betreff: Re: [Boost-users] boost::variant compile error

On Thu, Nov 8, 2012 at 11:44 PM, <Georg.Kelle...@lfu.bayern.de<mailto:Georg.Kelle...@lfu.bayern.de>> wrote:
Hi,

i'd like to build a heterogenous container based on the boost::variant datastructure. My code looks like this:
// forward-Deklarationen:
class fExport FB_Ordered;
class fExport FB_Dictionary;

What's fExport?

// Typedefs
typedef boost::variant<int, std::string> keydicttype;
typedef boost::variant<
        int, std::string, date, ptime,
        boost::recursive_wrapper<FB_Dictionary>,
        boost::recursive_wrapper<FB_Ordered>> valuedicttype;
typedef boost::container::map<keydicttype, valuedicttype> basedict;

C:\dev\boost_1_52_0\boost/checked_delete.hpp(32) : error C2027: use of undefined Type "FB_Ordered"

what i want to do is to create a container fb_dictionary which can hold datatypes that are listed in the valuedicttype and which can accept keyvalues of int and string (see above). fb_ordered is another container defined in a diferent header file so i need the forward declarations. Could anybody please give me a hint in the right direction?  I am using vs2008.

A full, expected-to-compile example is always helpful. But the errors I'm getting with the above typedefs seem more related to the lack of this fExport keyword you're using. If I remove the fExport stuff then all the typedefs compile fine, and I don't get the undefined type error until I try to instantiate basedict (obviously; FB_Ordered and FB_Dictionary need to be defined by then).

- Jeff

_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »