From 6b04fd15243a3741c41ff8c775dcac064f137142 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Mon, 15 Feb 2021 08:27:19 -0800 Subject: [PATCH] Small fixes from review. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- README.md | 2 +- fpga_interchange/fpga_interchange.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 99bbd54c..624c9187 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The following packages need to be installed for building nextpnr, independent of the selected architecture: - CMake 3.3 or later -- Modern C++11 compiler (`clang-format` required for development) +- Modern C++14 compiler (`clang-format` required for development) - Python 3.5 or later, including development libraries (`python3-dev` for Ubuntu) - on Windows make sure to install same version as supported by [vcpkg](https://github.com/Microsoft/vcpkg/blob/master/ports/python3/CONTROL) - Boost libraries (`libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev libboost-dev` or `libboost-all-dev` for Ubuntu) diff --git a/fpga_interchange/fpga_interchange.cpp b/fpga_interchange/fpga_interchange.cpp index 8ff080dd..98580261 100644 --- a/fpga_interchange/fpga_interchange.cpp +++ b/fpga_interchange/fpga_interchange.cpp @@ -43,7 +43,7 @@ static void write_message(::capnp::MallocMessageBuilder & message, const std::st struct StringEnumerator { std::vector strings; - std::map string_to_index; + std::unordered_map string_to_index; size_t get_index(const std::string &s) { auto result = string_to_index.emplace(s, strings.size());