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 » Please help! New transfer semantic issue!
Please help! New transfer semantic issue! [message #46161] Mon, 21 March 2016 12:36 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Maybe problem is trivial, but I stopped on it.

There is class Line
class Line {
    ....
        Line( Point p1, Point p2 ) // constructor
}


and class Figure
class Line {
   public:
       Array<Line> lines;
}


and if I use compiler option -std=c++11

I get error message while adding new Line to Lines
lines.Add(Line(p1,p2));


Without option -std=c++11 all OK.

What right way to do this with -std=c++11 option?


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: conversion from String to wchar_t
Next Topic: How to handle a lack of memory
Goto Forum:
  


Current Time: Sat Apr 27 08:20:48 CEST 2024

Total time taken to generate the page: 0.04080 seconds