diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 72ed364..4e26138 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -4,5 +4,7 @@ FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04 # RUN su vscode -c "${VCPKG_ROOT}/vcpkg install " # [Optional] Uncomment this section to install additional packages. -# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + clang-format \ + && rm -rf /var/lib/apt/lists/* diff --git a/examples/readme.cpp b/examples/readme.cpp index 2b2462c..a5c2ebb 100644 --- a/examples/readme.cpp +++ b/examples/readme.cpp @@ -145,7 +145,7 @@ constexpr auto WithSummary = trait{ // ... you can use a trait -decltype(auto) operator<<(std::ostream & stream, is auto const& drawable) { +decltype(auto) operator<<(std::ostream& stream, is auto const& drawable) { drawable.draw(stream); return stream; } diff --git a/include/traits.h b/include/traits.h index 1e6e702..fb60387 100644 --- a/include/traits.h +++ b/include/traits.h @@ -1159,8 +1159,8 @@ struct variant_constraint { template constexpr auto operator()() const noexcept { - return (... or std::same_as)and OtherConstraints{} - .template operator()(); + return (... or std::same_as) and + OtherConstraints{}.template operator()(); } };