U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Error in "NTL - moveable" documentation?
Re: Error in "NTL - moveable" documentation? [message #4295 is a reply to message #4250] Mon, 31 July 2006 21:19 Go to previous messageGo to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
luzr wrote on Sun, 30 July 2006 11:11

Thanks!

Fixed: capacity = max(1, 2 * capacity);

Mirek


You're welcome!

May I suggest to check that "Expand" in the second - improved - "SimpleVector" class is also corrected?

There is another error - just a simple typo - in the "Moveable"-documentation:

The last member function of the class "SimpleString" is obviously the destructor, but the tilde (~) in front of "SimpleString" is missing.

By the way, the "Moveable" documentation leads to the following question:

As a "NTL_MOVEABLE"-macro example you provide:

NTL_MOVEABLE(std::string);


This provokes to use STL's "string" instead of UPP's "String". What is there against it? (After all its the standard!) Rolling Eyes

Werner
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: More String Functions [FEATURE REQUEST]
Next Topic: running programs from upp program
Goto Forum:
  


Current Time: Sat May 09 16:31:13 GMT+2 2026

Total time taken to generate the page: 0.00466 seconds