-
Notifications
You must be signed in to change notification settings - Fork 51
Enable use of string litterals in ComboInput #514
Copy link
Copy link
Labels
GUIRelated to GUI featuresRelated to GUI featuresenhancementNew feature or requestNew feature or request
Description
This is currently not supported, we always expect an std::vector<std::string> for the labels.
#include <string_view>
using namespace std::string_view_literals; // Enables sv suffix only
static constexpr std::array holes = {"hole_0"sv, "hole_1"sv};
using namespace mc_rtc::gui;
ctl.gui()->addElement(this, {},
ComboInput("Hole",
holes,
[this]() { return hole_; }, [this](const std::string & hole) { hole_ = hole; })
);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GUIRelated to GUI featuresRelated to GUI featuresenhancementNew feature or requestNew feature or request