From f0a97b54a948c520c354c135e5f0c17ad4172e9f Mon Sep 17 00:00:00 2001 From: alexandre burton Date: Wed, 18 Dec 2024 01:02:24 -0500 Subject: [PATCH] operator= for ofParameter = "char" --- libs/openFrameworks/types/ofParameter.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/openFrameworks/types/ofParameter.h b/libs/openFrameworks/types/ofParameter.h index 27fa0c4a733..a51ffccf875 100644 --- a/libs/openFrameworks/types/ofParameter.h +++ b/libs/openFrameworks/types/ofParameter.h @@ -589,6 +589,13 @@ class ofParameter : public ofAbstractParameter { ofParameter & operator=(const ofParameter & v); const ParameterType & operator=(const ParameterType & v); + template + typename std::enable_if_t, ofParameter&> + operator=(const char* value) { + set(std::string(value)); + return *this; + } + ParameterType operator++(int v); ofParameter & operator++();