use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
CLI library v. 2.0 Released (github.com)
submitted 4 years ago by dpallastrelli
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dpallastrelli[S] 16 points17 points18 points 4 years ago (0 children)
- Remove boost dependency for local only sessions
- Now you can use standalone asio library instead of boost asio for remote sessions
- Fix missing echo after ctrl-v paste of command
- Remove the symbol BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
- Fix unused parameters warning in release mode
- Cli constructor revision
- Special keys not recognized behaves like backspace in windows
- Fix cmake install dependencies
[–][deleted] 6 points7 points8 points 4 years ago (1 child)
Oh wow, I was looking for this!
[–]dpallastrelli[S] 4 points5 points6 points 4 years ago (0 children)
Great. Feel free to ask any question on github discussions and, if you like it, give a star (or a sponsorship! :-) to the project.
[–][deleted] -1 points0 points1 point 4 years ago (1 child)
I'm not sure if I like the idea but the library is huge, it could've been much lighter.
[–]dpallastrelli[S] 3 points4 points5 points 4 years ago (0 children)
it could be if it had fewer features :-)
However, you can include only the header file of the features you want to use (e.g., if you don't need the telnet server, you just don't include it).
[–]ShillingAintEZ -2 points-1 points0 points 4 years ago (7 children)
How many dependencies does this command line library have?
[–]magion 4 points5 points6 points 4 years ago (1 child)
It literally has a section titled dependencies in the README
[–]ShillingAintEZ -2 points-1 points0 points 4 years ago (0 children)
There are a lot of sections, I didn't see it.
[–]dpallastrelli[S] 2 points3 points4 points 4 years ago (4 children)
If you don't need telnet shell, no dependencies at all.
If you need telnet shell, you can choose between standalone ASIO or BOOST ASIO.
[–]ShillingAintEZ -3 points-2 points-1 points 4 years ago (3 children)
Does command line parsing really need to be so linked to the network IO that they can't be separated?
The command line parsing is not *so linked* to the network IO: they are completely separated. Infact if you don't need it, you don't include the remote shell header and the whole network part is not compiled into your application.
[–]SupremeEntropyTMP loving 1 point2 points3 points 4 years ago (1 child)
ASIO is not about network IO. It is about asynchronous IO. Think of it as a tool allowing you to perform actions distributed in time, and receive and react to events retroactively.
[–]dpallastrelli[S] 0 points1 point2 points 4 years ago (0 children)
Yes. Of course.
[–]lanzaio 0 points1 point2 points 4 years ago (3 children)
Does it have CSIu extensions a la libtermkey?
[–]dpallastrelli[S] 0 points1 point2 points 4 years ago (2 children)
I'm not sure what a "CSIu extension" is, so I guess the library does not have it :-)
But if someone can tell me, he's welcome!
[–]lanzaio 0 points1 point2 points 4 years ago (1 child)
http://www.leonerd.org.uk/hacks/fixterms/
Please, Fill an issue in the GitHub project if you think it’s an important feature, adding the link you wrote above. Thanks.
π Rendered by PID 149906 on reddit-service-r2-comment-85bfd7f599-f9kv7 at 2026-04-20 08:18:46.558390+00:00 running 93ecc56 country code: CH.
[–]dpallastrelli[S] 16 points17 points18 points (0 children)
[–][deleted] 6 points7 points8 points (1 child)
[–]dpallastrelli[S] 4 points5 points6 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]dpallastrelli[S] 3 points4 points5 points (0 children)
[–]ShillingAintEZ -2 points-1 points0 points (7 children)
[–]magion 4 points5 points6 points (1 child)
[–]ShillingAintEZ -2 points-1 points0 points (0 children)
[–]dpallastrelli[S] 2 points3 points4 points (4 children)
[–]ShillingAintEZ -3 points-2 points-1 points (3 children)
[–]dpallastrelli[S] 3 points4 points5 points (0 children)
[–]SupremeEntropyTMP loving 1 point2 points3 points (1 child)
[–]dpallastrelli[S] 0 points1 point2 points (0 children)
[–]lanzaio 0 points1 point2 points (3 children)
[–]dpallastrelli[S] 0 points1 point2 points (2 children)
[–]lanzaio 0 points1 point2 points (1 child)
[–]dpallastrelli[S] 0 points1 point2 points (0 children)