Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » MSC problems: pick_ != const
MSC problems: pick_ != const [message #20931] Sun, 19 April 2009 23:07 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

For example, this code causes error:
struct AOp : Moveable<AOp>
{
	One<AOpHardware> hardware;
};

class AOps : public Vector<AOp>
{
public:
	void Xmlize(XmlIO xml) {XmlizeContainer(xml, "aop", *this);}
};

This is caused by the fact that pick != const in MSC compiler. And somewhere within U++ Core we have copying of Vector member with const argument (not pick_!):
//Core/Topt.h @ 135
template <class T>
inline void DeepCopyConstruct(void *p, const T& x) {
	::new(p) T(x);
}

This is strange. Class One supports pick behaviour, so accroding to U++ principles this code should compile without errors.
Am I right?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [REQUEST] IsHidden for POSIX platforms
Next Topic: Add the replace string with wildcards from editor to core
Goto Forum:
  


Current Time: Sun Jun 16 15:19:35 CEST 2024

Total time taken to generate the page: 0.01619 seconds