Home » Community » Newbie corner » MoveableAndDeepCopyOption inherite to use a VectorMap ?
MoveableAndDeepCopyOption inherite to use a VectorMap ? [message #50384] |
Mon, 08 October 2018 12:13 |
|
Xemuth
Messages: 387 Registered: August 2018 Location: France
|
Senior Member |
|
|
Hello there !
Today, once again, I got a probleme with one of my object :
class Parking : public Upp::MoveableAndDeepCopyOption<Parking> { //I'd try with Upp::Moveable<Parking>
private:
...
Upp::VectorMap<Upp::String, Upp::String> mesTarif;
...
};
C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp/uppsrc/C ore/Vcont.h (98): required from 'T& Upp::Vector<T>::Add(const T&) [with T = Parking]'
C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp/uppsrc/C ore/Core.h (272): In file included from C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp/uppsrc/C ore/Core.h:272:0,
C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp\MyApps\T inyWebServer\TinyWebServer.cpp (1): from C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp\MyApps\T inyWebServer\TinyWebServer.cpp:1:
C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp\MyApps\T inyWebServer\TinyWebServer.cpp (543): required from here
C:\Users\Administrateur.WINDOWS-060HJTR\Desktop\upp/uppsrc/C ore/Topt.h (225): error: no matching function for call to 'Parking::Parking(const Parking&, int)'
My Vector map raise error on compilation even with MoveableAndDeepCopyOption/Moveable.
Can someone explain me how can I fix this error ? and why it occure ?
Thanks in advance.
have good day !
|
|
|
Goto Forum:
Current Time: Fri Apr 26 05:42:23 CEST 2024
Total time taken to generate the page: 0.02327 seconds
|