diff --git a/src/Backend/Renderer/GLES2/CanvasGLES2.cpp b/src/Backend/Renderer/GLES2/CanvasGLES2.cpp index a556d089b..998fdaded 100644 --- a/src/Backend/Renderer/GLES2/CanvasGLES2.cpp +++ b/src/Backend/Renderer/GLES2/CanvasGLES2.cpp @@ -33,6 +33,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CanvasGLES2::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CanvasGLES2::CanvasGLES2(const char* typeName, bool initRenderer) : diff --git a/src/Backend/Renderer/OpenGL3/CanvasOpenGL3.cpp b/src/Backend/Renderer/OpenGL3/CanvasOpenGL3.cpp index f70556b0f..87f29a49b 100644 --- a/src/Backend/Renderer/OpenGL3/CanvasOpenGL3.cpp +++ b/src/Backend/Renderer/OpenGL3/CanvasOpenGL3.cpp @@ -33,6 +33,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CanvasOpenGL3::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CanvasOpenGL3::CanvasOpenGL3(const char* typeName, bool initRenderer) : diff --git a/src/Backend/Renderer/SDL_Renderer/CanvasSDL.cpp b/src/Backend/Renderer/SDL_Renderer/CanvasSDL.cpp index 91f5a42ff..a0d550f06 100644 --- a/src/Backend/Renderer/SDL_Renderer/CanvasSDL.cpp +++ b/src/Backend/Renderer/SDL_Renderer/CanvasSDL.cpp @@ -31,6 +31,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CanvasSDL::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CanvasSDL::CanvasSDL(const char* typeName, bool initRenderer) : diff --git a/src/Backend/Renderer/SFML-Graphics/CanvasSFML.cpp b/src/Backend/Renderer/SFML-Graphics/CanvasSFML.cpp index 6feca2741..6396ad68e 100644 --- a/src/Backend/Renderer/SFML-Graphics/CanvasSFML.cpp +++ b/src/Backend/Renderer/SFML-Graphics/CanvasSFML.cpp @@ -32,6 +32,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CanvasSFML::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CanvasSFML::CanvasSFML(const char* typeName, bool initRenderer) : diff --git a/src/Container.cpp b/src/Container.cpp index bbacd622e..00cfbf831 100644 --- a/src/Container.cpp +++ b/src/Container.cpp @@ -1507,6 +1507,12 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char RootContainer::StaticWidgetType[]; +#endif + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + RootContainer::RootContainer(const char* typeName, bool initRenderer) : Container{typeName, initRenderer} { diff --git a/src/CustomWidgetForBindings.cpp b/src/CustomWidgetForBindings.cpp index 95adb0317..ce068d1fd 100644 --- a/src/CustomWidgetForBindings.cpp +++ b/src/CustomWidgetForBindings.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CustomWidgetForBindings::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CustomWidgetForBindings::CustomWidgetForBindings(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/BitmapButton.cpp b/src/Widgets/BitmapButton.cpp index 6a4ff37df..747f6867d 100644 --- a/src/Widgets/BitmapButton.cpp +++ b/src/Widgets/BitmapButton.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char BitmapButton::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// BitmapButton::BitmapButton(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Button.cpp b/src/Widgets/Button.cpp index 276b9732a..8d4991a91 100644 --- a/src/Widgets/Button.cpp +++ b/src/Widgets/Button.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Button::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Button::Button(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ChatBox.cpp b/src/Widgets/ChatBox.cpp index ee25882d3..dd8ad39ad 100644 --- a/src/Widgets/ChatBox.cpp +++ b/src/Widgets/ChatBox.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ChatBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ChatBox::ChatBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/CheckBox.cpp b/src/Widgets/CheckBox.cpp index f76ab4206..39a3f00a2 100644 --- a/src/Widgets/CheckBox.cpp +++ b/src/Widgets/CheckBox.cpp @@ -34,6 +34,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char CheckBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CheckBox::CheckBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ChildWindow.cpp b/src/Widgets/ChildWindow.cpp index 0ba97dba5..aae6e5dd4 100644 --- a/src/Widgets/ChildWindow.cpp +++ b/src/Widgets/ChildWindow.cpp @@ -51,6 +51,12 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ChildWindow::StaticWidgetType[]; +#endif + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + ChildWindow::ChildWindow(const char* typeName, bool initRenderer) : Container{typeName, false} { diff --git a/src/Widgets/ClickableWidget.cpp b/src/Widgets/ClickableWidget.cpp index 1124d086c..02d4c75f7 100644 --- a/src/Widgets/ClickableWidget.cpp +++ b/src/Widgets/ClickableWidget.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ClickableWidget::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ClickableWidget::ClickableWidget(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ColorPicker.cpp b/src/Widgets/ColorPicker.cpp index 3160c8b1d..b04337e89 100644 --- a/src/Widgets/ColorPicker.cpp +++ b/src/Widgets/ColorPicker.cpp @@ -131,6 +131,12 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ColorPicker::StaticWidgetType[]; +#endif + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + ColorPicker::ColorPicker(const char* typeName, bool initRenderer) : ChildWindow{typeName, false} { diff --git a/src/Widgets/ComboBox.cpp b/src/Widgets/ComboBox.cpp index b8aac1be8..017885a08 100644 --- a/src/Widgets/ComboBox.cpp +++ b/src/Widgets/ComboBox.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ComboBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ComboBox::ComboBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/EditBox.cpp b/src/Widgets/EditBox.cpp index d1e121aac..2568ac917 100644 --- a/src/Widgets/EditBox.cpp +++ b/src/Widgets/EditBox.cpp @@ -38,6 +38,10 @@ namespace tgui const char* EditBox::Validator::UInt = "[0-9]*"; const char* EditBox::Validator::Float = "[+-]?[0-9]*\\.?[0-9]*"; +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char EditBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// EditBox::EditBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/FileDialog.cpp b/src/Widgets/FileDialog.cpp index 161d267ca..3d432523f 100755 --- a/src/Widgets/FileDialog.cpp +++ b/src/Widgets/FileDialog.cpp @@ -37,6 +37,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char FileDialog::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// FileDialog::FileDialog(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Grid.cpp b/src/Widgets/Grid.cpp index e4300853c..5f5893ee9 100644 --- a/src/Widgets/Grid.cpp +++ b/src/Widgets/Grid.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Grid::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Grid::Grid(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Group.cpp b/src/Widgets/Group.cpp index 9e87029b1..7769c05d1 100644 --- a/src/Widgets/Group.cpp +++ b/src/Widgets/Group.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Group::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Group::Group(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/HorizontalLayout.cpp b/src/Widgets/HorizontalLayout.cpp index af0a3358a..c9dcd8368 100644 --- a/src/Widgets/HorizontalLayout.cpp +++ b/src/Widgets/HorizontalLayout.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char HorizontalLayout::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// HorizontalLayout::HorizontalLayout(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/HorizontalWrap.cpp b/src/Widgets/HorizontalWrap.cpp index e7d2c06d2..56397612d 100644 --- a/src/Widgets/HorizontalWrap.cpp +++ b/src/Widgets/HorizontalWrap.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char HorizontalWrap::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// HorizontalWrap::HorizontalWrap(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Knob.cpp b/src/Widgets/Knob.cpp index 99786f415..637a1cb93 100644 --- a/src/Widgets/Knob.cpp +++ b/src/Widgets/Knob.cpp @@ -44,6 +44,10 @@ namespace namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Knob::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Knob::Knob(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Label.cpp b/src/Widgets/Label.cpp index 530a51da8..bce06bb84 100644 --- a/src/Widgets/Label.cpp +++ b/src/Widgets/Label.cpp @@ -32,6 +32,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Label::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Label::Label(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ListBox.cpp b/src/Widgets/ListBox.cpp index 8afc2fd15..0264ac07d 100644 --- a/src/Widgets/ListBox.cpp +++ b/src/Widgets/ListBox.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ListBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ListBox::ListBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ListView.cpp b/src/Widgets/ListView.cpp index 17bdb848e..4a4f2f0e2 100644 --- a/src/Widgets/ListView.cpp +++ b/src/Widgets/ListView.cpp @@ -37,6 +37,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ListView::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ListView::ListView(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/MenuBar.cpp b/src/Widgets/MenuBar.cpp index a33b650bc..461a341ed 100644 --- a/src/Widgets/MenuBar.cpp +++ b/src/Widgets/MenuBar.cpp @@ -163,6 +163,12 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char MenuBar::StaticWidgetType[]; +#endif + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + MenuBar::MenuBar(const char* typeName, bool initRenderer) : Widget{typeName, false}, m_menuWidgetPlaceholder(std::make_shared(this)), diff --git a/src/Widgets/MessageBox.cpp b/src/Widgets/MessageBox.cpp index f61495daa..254847135 100644 --- a/src/Widgets/MessageBox.cpp +++ b/src/Widgets/MessageBox.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char MessageBox::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// MessageBox::MessageBox(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Panel.cpp b/src/Widgets/Panel.cpp index 8c33c85d2..d297f195b 100644 --- a/src/Widgets/Panel.cpp +++ b/src/Widgets/Panel.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Panel::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Panel::Panel(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Picture.cpp b/src/Widgets/Picture.cpp index 637ee9aca..ecbd1d68b 100644 --- a/src/Widgets/Picture.cpp +++ b/src/Widgets/Picture.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Picture::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Picture::Picture(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ProgressBar.cpp b/src/Widgets/ProgressBar.cpp index cb484e32c..2a51b11f5 100644 --- a/src/Widgets/ProgressBar.cpp +++ b/src/Widgets/ProgressBar.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ProgressBar::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ProgressBar::ProgressBar(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/RadioButton.cpp b/src/Widgets/RadioButton.cpp index c0598bde2..f6dabe257 100644 --- a/src/Widgets/RadioButton.cpp +++ b/src/Widgets/RadioButton.cpp @@ -28,6 +28,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char RadioButton::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RadioButton::RadioButton(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/RadioButtonGroup.cpp b/src/Widgets/RadioButtonGroup.cpp index 45aa77bf1..defca24f2 100644 --- a/src/Widgets/RadioButtonGroup.cpp +++ b/src/Widgets/RadioButtonGroup.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char RadioButtonGroup::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RadioButtonGroup::RadioButtonGroup(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/RangeSlider.cpp b/src/Widgets/RangeSlider.cpp index a1d22ba57..c9ef7015a 100644 --- a/src/Widgets/RangeSlider.cpp +++ b/src/Widgets/RangeSlider.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char RangeSlider::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RangeSlider::RangeSlider(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/RichTextLabel.cpp b/src/Widgets/RichTextLabel.cpp index 9e863e502..db358323a 100644 --- a/src/Widgets/RichTextLabel.cpp +++ b/src/Widgets/RichTextLabel.cpp @@ -48,6 +48,10 @@ namespace tgui }; #endif +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char RichTextLabel::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RichTextLabel::RichTextLabel(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ScrollablePanel.cpp b/src/Widgets/ScrollablePanel.cpp index 968d046df..638803af5 100644 --- a/src/Widgets/ScrollablePanel.cpp +++ b/src/Widgets/ScrollablePanel.cpp @@ -33,6 +33,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ScrollablePanel::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ScrollablePanel::ScrollablePanel(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Scrollbar.cpp b/src/Widgets/Scrollbar.cpp index 9415e6058..ed36bbfda 100644 --- a/src/Widgets/Scrollbar.cpp +++ b/src/Widgets/Scrollbar.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Scrollbar::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Scrollbar::Scrollbar(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/SeparatorLine.cpp b/src/Widgets/SeparatorLine.cpp index 9dc3c9aea..cd7c05cad 100644 --- a/src/Widgets/SeparatorLine.cpp +++ b/src/Widgets/SeparatorLine.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char SeparatorLine::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SeparatorLine::SeparatorLine(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Slider.cpp b/src/Widgets/Slider.cpp index d5e6890a3..c61042ff3 100644 --- a/src/Widgets/Slider.cpp +++ b/src/Widgets/Slider.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Slider::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Slider::Slider(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/SpinButton.cpp b/src/Widgets/SpinButton.cpp index 788f78596..f6f8ed1ad 100644 --- a/src/Widgets/SpinButton.cpp +++ b/src/Widgets/SpinButton.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char SpinButton::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SpinButton::SpinButton(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/SpinControl.cpp b/src/Widgets/SpinControl.cpp index 3d97ca07d..3ada812f8 100644 --- a/src/Widgets/SpinControl.cpp +++ b/src/Widgets/SpinControl.cpp @@ -28,6 +28,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char SpinControl::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SpinControl::SpinControl(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/TabContainer.cpp b/src/Widgets/TabContainer.cpp index 793249652..c1c24ce0a 100644 --- a/src/Widgets/TabContainer.cpp +++ b/src/Widgets/TabContainer.cpp @@ -28,6 +28,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char TabContainer::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// TabContainer::TabContainer(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/Tabs.cpp b/src/Widgets/Tabs.cpp index 3998eeb14..fd7115270 100644 --- a/src/Widgets/Tabs.cpp +++ b/src/Widgets/Tabs.cpp @@ -31,6 +31,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char Tabs::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Tabs::Tabs(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/TextArea.cpp b/src/Widgets/TextArea.cpp index 0596a6345..5492e9b91 100644 --- a/src/Widgets/TextArea.cpp +++ b/src/Widgets/TextArea.cpp @@ -33,6 +33,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char TextArea::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// TextArea::TextArea(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/ToggleButton.cpp b/src/Widgets/ToggleButton.cpp index 1d1fff5e7..4e8f15f6a 100644 --- a/src/Widgets/ToggleButton.cpp +++ b/src/Widgets/ToggleButton.cpp @@ -29,6 +29,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char ToggleButton::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ToggleButton::ToggleButton(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/TreeView.cpp b/src/Widgets/TreeView.cpp index 4eceab7a8..49b49c1c5 100644 --- a/src/Widgets/TreeView.cpp +++ b/src/Widgets/TreeView.cpp @@ -233,6 +233,10 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// } +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char TreeView::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// TreeView::TreeView(const char* typeName, bool initRenderer) : diff --git a/src/Widgets/VerticalLayout.cpp b/src/Widgets/VerticalLayout.cpp index 525032268..ac990f0ff 100644 --- a/src/Widgets/VerticalLayout.cpp +++ b/src/Widgets/VerticalLayout.cpp @@ -30,6 +30,10 @@ namespace tgui { +#if TGUI_COMPILED_WITH_CPP_VER < 17 + constexpr const char VerticalLayout::StaticWidgetType[]; +#endif + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// VerticalLayout::VerticalLayout(const char* typeName, bool initRenderer) :