Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eel76 committed Nov 6, 2024
1 parent 731f85c commit b85a540
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"

# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
clang-format \
&& rm -rf /var/lib/apt/lists/*
2 changes: 1 addition & 1 deletion examples/readme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ constexpr auto WithSummary = trait{

// ... you can use a trait

decltype(auto) operator<<(std::ostream & stream, is<Drawable> auto const& drawable) {
decltype(auto) operator<<(std::ostream& stream, is<Drawable> auto const& drawable) {
drawable.draw(stream);
return stream;
}
Expand Down
4 changes: 2 additions & 2 deletions include/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -1159,8 +1159,8 @@ struct variant_constraint {

template <typename T>
constexpr auto operator()() const noexcept {
return (... or std::same_as<T, Alternatives>)and OtherConstraints{}
.template operator()<T>();
return (... or std::same_as<T, Alternatives>) and
OtherConstraints{}.template operator()<T>();
}
};

Expand Down

0 comments on commit b85a540

Please sign in to comment.