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 » Vcont.h and Vcont.hpp Change required
Vcont.h and Vcont.hpp Change required [message #56760] Mon, 12 April 2021 06:41 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

Small change required in Vcont.h @Line 195

Original
T&       Add(const T& x)                 { return items < alloc ? *(new(Rdd()) T(x)) : GrowAdd(x); }


Changed
T&       Add(const T& x)                 { return items < alloc ? *(new(Rdd()) T(clone(x))) : GrowAdd(clone(x)); }



Also Change in Vcont.hpp file @line 140

Original
T *q = new(Rdd()) T(x);


Changed
T *q = new(Rdd()) T(clone(x));



Warm Regards

Deepak

[Updated on: Mon, 12 April 2021 06:43]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: build with clang-mingw on Linux is broken
Next Topic: Any Example of Inverse a Matrix in U++?
Goto Forum:
  


Current Time: Mon Apr 29 01:37:48 CEST 2024

Total time taken to generate the page: 0.03878 seconds