Files
signals2/test/cmake_subdir_test/main.cpp
2024-10-08 03:15:43 +03:00

20 lines
301 B
C++

// Copyright 2024 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/signals2.hpp>
int f()
{
return 4;
}
int main()
{
boost::signals2::signal<int()> sig;
sig.connect( f );
return sig() == 4? 0: 1;
}