Skip to content

Commit

Permalink
c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Sep 8, 2024
1 parent 6bc7da1 commit 532be7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/base/base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ this_cxxflags += -Werror # treat warnings as errors
this_cxxflags += -Wfatal-errors # stop on first error encountered
this_cxxflags += -fstrict-aliasing # in order to comply with the c++ standard more strictly
this_cxxflags += -g # include debugging symbols
this_cxxflags += -std=c++20
this_cxxflags += -std=c++17
this_cxxflags += -fPIC
this_cxxflags += -Wno-deprecated-declarations

Expand Down
6 changes: 5 additions & 1 deletion src/bedsidemon/settings_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ settings_menu::settings_menu(utki::shared_ref<ruis::context> context) :

auto& ss = bedsidemon::application::inst().settings_storage;
const auto& s = ss.get();
auto i = std::ranges::find(sweep_speeds_um_per_sec, s.sweep_speed_um_per_sec);
auto i = std::find(
sweep_speeds_um_per_sec.begin(), //
sweep_speeds_um_per_sec.end(),
s.sweep_speed_um_per_sec
);
if (i != sweep_speeds_um_per_sec.end()) {
sb.set_selection(std::distance(sweep_speeds_um_per_sec.begin(), i));
} else {
Expand Down

0 comments on commit 532be7b

Please sign in to comment.