Getting started with C++ boost library
Last few days were well spent with the C++ library boost. It was a great learning experience. I was introduced to the one of best-kept code and some new coding paradigms. Along with that it was the first time I was coding with the new standards of C++11 and C++14. During the time I learned a lot of things which I would like to discuss in this post. I also want to share the link of GitHub that everyone can follow for the code that I will talk about in a moment. Here is the link: https://github.com/singh1114/parser/ As this is the first of the long lasting series about C++ I want to keep it as simple as I can. I will be discussing the various problem that one faces during his/her journey of the boost library. I would discuss this by using boost::spirit for an example. Prerequisites:
- C++. Of course, one must know some procedural level C++. If the reader has some knowledge about polymorphism using standard template library, that would be a +1.
- This tutorial is only for the Linux user with a good knowledge of using compiling commands on the terminal.
<code><span class="pln">$ sudo apt</span><span class="pun">-</span><span class="pln">get install libboost</span><span class="pun">-</span><span class="pln">all</span><span class="pun">-</span><span class="pln">dev</span></code>
$ locate boost
$ git clone https://github.com/your_gh_username/parser/
$ cd parser $ cd simple_calculator $ g++ -I /path/to/boost/ -std=c++11 ascii_char.cpp -o example
2-2 //This is a valid option
Every big thing start with something small.Now I would like to take off. If you have some doubt about the code or anything related to the post, feel free to drop a comment.
Did you enjoy reading or think it can be improved? Don’t forget to leave your thoughts in the comments section below! If you liked this article, please share it with your friends, and read a few more!