
AMDG On 11/15/2011 06:10 PM, Jerry Jeremiah wrote:
Actually, I don't want a recursive variant in the normal recursive_wrapper sense. What I want is this:
typedef std::list<a> alist; typedef std::list<b> blist; typedef boost::variant<std::string ,long double ,alist::iterator ,blist::iterator ,config::iterator > var; typedef std::vector<var> value; typedef std::map<std::string,value> message; typedef std::map<std::string,message> config;
But of course I can't do that because I have no idea how to forward declare config. I suspect that there is no way to do this, but I am not in the same league as everybody else when it comes to this stuff.
Any suggestions?
Wrap it in a struct and forward declare the struct. In Christ, Steven Watanabe