diff options
-rw-r--r-- | GNUmakefile | 2 | ||||
-rw-r--r-- | src/aflrun.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile index d4fda060..9a2a7ad3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -152,7 +152,7 @@ override CFLAGS += -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno- # -fstack-protector CXXFLAGS ?= -O2 $(CFLAGS_OPT) -override CXXFLAGS += -Iinclude +override CXXFLAGS += -std=c++20 -Iinclude ifdef AFLRUN_CTX override CFLAGS += -DAFLRUN_CTX diff --git a/src/aflrun.cpp b/src/aflrun.cpp index b23c9e02..54a1f203 100644 --- a/src/aflrun.cpp +++ b/src/aflrun.cpp @@ -2,7 +2,6 @@ #include <boost/dynamic_bitset.hpp> #include <boost/functional/hash.hpp> -#include <boost/make_shared.hpp> namespace bo = boost; #include <algorithm> @@ -497,13 +496,13 @@ class TargetGrouper; struct SeedFringes { - bo::shared_ptr<u8[]> bitmap; + std::shared_ptr<u8[]> bitmap; size_t bitmap_size; size_t num_ones; explicit SeedFringes(size_t num_fringes) : bitmap_size((num_fringes + 7) / 8), num_ones(0) { - bitmap = bo::make_shared<u8[]>(bitmap_size); + bitmap = std::make_shared<u8[]>(bitmap_size); fill(bitmap.get(), bitmap.get() + bitmap_size, 0); } bool operator==(const SeedFringes& rhs) const |