Home » Community » Newbie corner » [Solved]Vector<Vector<int>> problem
[Solved]Vector<Vector<int>> problem [message #53045] |
Mon, 17 February 2020 05:21  |
bozero
Messages: 20 Registered: June 2018
|
Promising Member |
|
|
Hi, everyone:
Please advise me how to fix the below problem.
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
Vector<int> vi1,vi2;
Vector<Vector<int>> vvi;
vi1<<1<<2;
vi2<<3<<4;
vvi<<vi1<<vi2;
DUMP(vvi); // vvi = [[1, 2], [3, 4]]
}
and got error message:
...upp/uppsrc/Core/Vcont.h:104:7: note: 'constexpr Upp::Vector<int>::Vector(const Upp::Vector<int>&)'
is implicitly declared as deleted because 'Upp::Vector<int>' declares a move constructor or move assignment operator
class Vector : public MoveableAndDeepCopyOption< Vector<T> > {
^~~~~~
Test: 1 file(s) built in (0:02.91), 2918 msecs / file, duration = 2918 msecs
There were errors. (0:03.34)
The code is working on upp-mingw-11873,
but not work on upp-mingw-13664 & upp-mingw-13916.
under windows 10.
I am sorry for my stupid question and poor english.
Thank you very much
[Updated on: Wed, 19 February 2020 03:50] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 00:59:22 CEST 2025
Total time taken to generate the page: 0.01323 seconds
|