Ah, my bad. I overlooked that somehow.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
.template<class Func, class ...Args>
static void connect_multiple(
const std::string& signals,
tgui::Widget::Ptr widget,
Func&& functor,
Args... args)
{
std::string signal;
std::istringstream iss(signals);
while (std::getline(iss, signal, ' '))
{
widget->connect(signal, functor, args...);
}
}
my_checkbox->connect("checked unchecked", [](bool status){ std::cout << status << '\n'; });
const unsigned int id = getSignal(toLower(signalName)).connect([f=std::function<void(const Args&...)>(handler),args...](){ f(args...); });
m_connectedSignals[id] = toLower(signalName);
return id;
. It does say it's something with the PackExpander or the filename let's me assume that.If the file has a cxxfe or c1xx path segment, or is msc1.cpp, it is probably a parser error.
Error C1001 Internal Compilererror.
(Compilerfile "d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\PackExpander.cpp", line 1764)
MenuItemTest C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\TGUI\SignalImpl.hpp 148
#include <TGUI/TGUI.hpp>
int main()
{
auto menu = tgui::MenuBar::create();
menu->addMenuItem({ "Test" }, true);
menu->connectMenuItem(
{ "Test" },
[]() { printf_s("works\n"); }
);
}