/usr/share/doc/libsigc++-1.2-dev/examples/hello_world.cc is in libsigc++-1.2-dev 1.2.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // Copyright 1999 Karl Nelson.
#include <iostream>
#include <string>
#include <sigc++/sigc++.h>
#ifdef SIGC_CXX_NAMESPACES
using namespace std;
using namespace SigC;
#endif
void print(const string &str)
{cout << str;}
main()
{
Signal1<void,const string &> printer;
printer.connect(slot(print));
printer("hello world\n");
}
|