Skip to content

Commit

Permalink
enforce C++17 at minimum
Browse files Browse the repository at this point in the history
Summary: New blanket requirement: C++17 at minimum, across all compilers. Future changes will assume C++17. Enforce the requirement explicitly in order to catch outstanding violations and potential regressions more easily.

Reviewed By: Mizuchi, Orvid

Differential Revision: D52628290

fbshipit-source-id: 9442ef894ee416cbb330d9b68b8a3667582b88d0
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 10, 2024
1 parent 3f9582e commit a831879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Folly: Facebook Open-source Library
<img src="static/logo.svg" alt="Logo Folly" width="15%" align="right" />

Folly (acronymed loosely after Facebook Open Source Library) is a
library of C++14 components designed with practicality and efficiency
library of C++17 components designed with practicality and efficiency
in mind. **Folly contains a variety of core library components used extensively
at Facebook**. In particular, it's often a dependency of Facebook's other
open source C++ efforts and place where those projects can share code.
Expand Down
2 changes: 1 addition & 1 deletion folly/Portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <version>
#endif

static_assert(FOLLY_CPLUSPLUS >= 201402L, "__cplusplus >= 201402L");
static_assert(FOLLY_CPLUSPLUS >= 201703L, "__cplusplus >= 201703L");

#if defined(__GNUC__) && !defined(__clang__)
static_assert(__GNUC__ >= 7, "__GNUC__ >= 7");
Expand Down

0 comments on commit a831879

Please sign in to comment.