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 » Community » U++ community news and announcements » C++11 library features finished
Re: C++11 library features finished [message #46584 is a reply to message #46569] Fri, 03 June 2016 19:27 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
code\gui\upp\trunk\uppsrc\core\map.h(178) : warning C4717: 'Upp::AMap<int,Upp::Vector<int>,Upp::Vector<Upp::Vector<int> > >::FindPutPick': recursive on all control paths, function will cause runtime stack overflow

MSVC 2015 x64.
Just to let you know.
The same problem should happen to FindAddPick and GetAddPick.
Although they are deprecated, they still are really recursive, and apps crash because of that.

I believe you wanted to implement them this way:
FindPutPick(const K& k, T&& init)                    { return FindPut(k, pick(init)); }


TIA.


Regards,
Novo

[Updated on: Fri, 03 June 2016 19:44]

Report message to a moderator

 
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide: Optimal mode removed
Next Topic: How You will celebrate 10 000 commit of U++?
Goto Forum:
  


Current Time: Fri May 03 03:44:31 CEST 2024

Total time taken to generate the page: 0.04563 seconds