Re:Data structures and algorithms problems in C++ using STL
by HugoDaniel on Friday March 10, 2017 @03:13AM
(#13837113)
It doesn't state what standard it is using. Is it with:
[ Parent
| on HN ]
Re:Data structures and algorithms problems in C++ using STL
by lorenzhs on Friday March 10, 2017 @04:11AM
(#13837324)
Appears to be C++11, which is contained twice in your list. C++20 doesn't exist yet. C++17 isn't finished either.
It doesn't appear to use new language features, only some library things like std::unordered_map, from what I gathered in a quick look. Most things will probably work just fine with C++03.
Re:Data structures and algorithms problems in C++ using STL
by divbit on Friday March 10, 2017 @12:02PM
(#13840012)
It compiles with -std=c++11, graph one fails with 03 on WSL at least
Re:Data structures and algorithms problems in C++ using STL
by castratikron on Friday March 10, 2017 @03:36PM
(#13841898)
I see "nullptr" in a few examples, which is C++11.
Re:Data structures and algorithms problems in C++ using STL
by lorenzhs on Monday March 13, 2017 @05:07AM
(#13856276)
Yeah but it should work in C++03 if you just '#define nullptr NULL'. Not saying it's good practice but C++11 usage is very light.
Re:Data structures and algorithms problems in C++ using STL
by pjmlp on Friday March 10, 2017 @04:30AM
(#13837402)
If this would be in Python, for example, for starters we would need to know if it is 2 or 3 variant.
Then we would need to know which of the following versions is being used:
Python 1.0 - January 1994
Python 1.5 - December 31, 1997
Python 1.6 - September 5, 2000
Python 2.0 - October 16, 2000
Python 2.1 - April 17, 2001
Python 2.2 - December 21, 2001
Python 2.3 - July 29, 2003
Python 2.4 - November 30, 2004
Python 2.5 - September 19, 2006
Python 2.6 - October 1, 2008
Python 2.7 - July 3, 2010
Python 3.0 - December 3, 2008
Python 3.1 - June 27, 2009
Python 3.2 - February 20, 2011
Python 3.3 - September 29, 2012
Python 3.4 - March 16, 2014
Python 3.5 - September 13, 2015
Python 3.6 - December 23, 2016
And for extra fun we can also add PyPy, CPython, IronPython, MicroPython, .... into the mix.I can gladly play this game with any other programming language.
Languages that people care about, get new versions all the time, and not all tooling implementations or developers catch up at the same time.
It is part of our job to deal with it.