|
Boost : |
From: SourceForge.net (noreply_at_[hidden])
Date: 2004-06-15 13:00:43
Support Requests item #973424, was opened at 2004-06-15 11:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=973424&group_id=7586
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::optional<enum> fails with /CLR
Initial Comment:
-----
#include <boost\optional.hpp>
#using <mscorlib.dll>
#include <tchar.h>
using namespace System;
enum Numbers { Zero, One, Two, Three };
// This is the entry point for this application
int _tmain(void)
{
boost::optional<Numbers> num;
return 0;
}
-----
optional.hpp(347): error C2300: 'System::Enum' : class
does not have a destructor called '~T'
I'm using boost 1.31.0; this fails in both VC7.0 and
VC7.1.
Removing "#using <mscorlib.dll>" and "using namespace
System;" gets rid of the compiler error, but then you
can't use things like System::String*
Thanks,
Dan
sourceforge.net_at_[hidden]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=973424&group_id=7586
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk