Travis: Fix C++ compilation

Summary:
@public

Removes the usage of C++14 features, and enforces C++11 via compiler flags.

Reviewed By: SidharthGuglani

Differential Revision: D15334938

fbshipit-source-id: 011764b5f226fef6a35e0c7c1dd170a39ae2261e
This commit is contained in:
David Aurelio
2019-05-14 07:42:40 -07:00
committed by Facebook Github Bot
parent 0ce42d83e0
commit e3156279fc
2 changed files with 4 additions and 3 deletions

View File

@@ -9,8 +9,6 @@
#include <yoga/YGNode.h>
#include <yoga/event/event.h>
#include <utility>
namespace facebook {
namespace yoga {
namespace test {
@@ -48,7 +46,9 @@ int TestUtil::nodeCount() {
int TestUtil::stopCountingNodes() {
Event::reset();
return std::exchange(nodeInstanceCount, 0);
auto prev = nodeInstanceCount;
nodeInstanceCount = 0;
return prev;
}
ScopedEventSubscription::ScopedEventSubscription(

View File

@@ -58,6 +58,7 @@ BASE_COMPILER_FLAGS = [
"-Wall",
"-Werror",
"-O2",
"-std=c++11",
]
LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [