Skip to content

Commit

Permalink
add higher version g++ support on debian:buster-slim
Browse files Browse the repository at this point in the history
  • Loading branch information
WandersYu committed Aug 31, 2019
1 parent bafa430 commit f14bf90
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ A Redis cluster proxy.
Build
===

## changelog

``` bash
[190831]

*) add higher version g++ support on debian:buster-slim
*) you should use `make COMPILER=g++` by default
```

Requirements:

* `make` and `cmake`
Expand Down
2 changes: 2 additions & 0 deletions core/command.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <algorithm>
#include <cppformat/format.h>

#include <numeric>

#include "message.hpp"
#include "command.hpp"
#include "proxy.hpp"
Expand Down
2 changes: 2 additions & 0 deletions core/slot_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "common.hpp"
#include "utils/address.hpp"

#include <vector>

namespace cerb {

class Server;
Expand Down
2 changes: 1 addition & 1 deletion misc/mf-template.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RESOLVE_DEP=$(COMPILER) -std=c++0x -MM $(INCLUDE)
LINK=$(COMPILER) -rdynamic
AR=ar rcs

CFLAGS=-Wall -Wextra -Wold-style-cast -Werror $(OPT_FLAGS)
CFLAGS=-Wall -Wextra -Wold-style-cast -Werror -Wno-expansion-to-defined $(OPT_FLAGS)
MKTMP := $(shell mktemp)

LIBS_DIR=libs
Expand Down
2 changes: 2 additions & 0 deletions utils/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "string.h"
#include "except/exceptions.hpp"

#include <numeric>

using namespace util;

bool util::strnieq(std::string const& lhs, std::string const& rhs, ssize_type n)
Expand Down

0 comments on commit f14bf90

Please sign in to comment.