Skip to content

Commit

Permalink
give up on absl
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 30, 2024
1 parent f0725dc commit 958494e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/cpuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <ranges>
#include <vector>

#include "absl/strings/str_join.h"
#include "base/macros.hpp" // 🧙 For PRINCIPIA_COMPILER_MSVC.
#include "glog/logging.h"

Expand Down Expand Up @@ -87,10 +86,11 @@ std::string ProcessorBrandString() {
}

std::string CPUFeatures() {
return absl::StrJoin(CPUIDFlags() |
std::views::filter(&CPUIDFeatureFlag::IsSet) |
std::views::transform(&CPUIDFeatureFlag::name),
" ");
return CPUIDFlags()
| std::views::filter(&CPUIDFeatureFlag::IsSet)
| std::views::transform(&CPUIDFeatureFlag::name)

Check warning on line 91 in base/cpuid.cpp

View workflow job for this annotation

GitHub Actions / check-cpp

build/include_what_you_use

Add #include <algorithm> for transform
| std::views::join_with(' ')
| std::ranges::to<std::string>();
}

} // namespace internal
Expand Down

0 comments on commit 958494e

Please sign in to comment.