Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

use c++14 mode for compilation #257

Merged
merged 5 commits into from
May 28, 2019
Merged

use c++14 mode for compilation #257

merged 5 commits into from
May 28, 2019

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented May 25, 2019

C++14 has many advantages over C++11, and now it's fully mature for nearly three years. Besides, there's no difficulty for our current codebase to move onto C++14. What we need to do is to upgrade our least compiler support to gcc-5 (suggested GCC-5.5).

The first benefit is that we are no longer suffering from the bug of std::regex lib in gcc-4.9, so no need for boost::regex then.

New features introduced in C++14 can be found in https://www.wikiwand.com/en/C%2B%2B14, some by far are useful for us:

  • std::make_unique: will replace dsn::make_unique
  • user-defined literals: will replace dsn/utility/chrono_literals.h

@neverchanje neverchanje added the area/installation PR or issues related to compilation / build scripts / installation / deployment. label May 25, 2019
@qinzuoyan qinzuoyan merged commit 89eb360 into XiaoMi:master May 28, 2019
@neverchanje neverchanje deleted the cpp branch May 28, 2019 06:12
neverchanje pushed a commit to neverchanje/rdsn that referenced this pull request Jun 17, 2019
@neverchanje neverchanje added the type/invalid Indicates that an issue or pull request is no longer relevant label Jul 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/installation PR or issues related to compilation / build scripts / installation / deployment. type/invalid Indicates that an issue or pull request is no longer relevant
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants