void operator_test() { tmm t; vm s; s.push_back(mytype(1)); s.push_back(mytype(2)); s.push_back(mytype(3)); vm s2; s2.push_back(mytype(2)); t[s] = 1; BOOST_TEST(t[s] == 1); t[s] = 5; BOOST_TEST(t[s] == mytype(5)); t[s2] = t[s]; BOOST_TEST(t.count_node() == 4); BOOST_TEST(t[s] == t[s2]); BOOST_TEST(t.count_node() == 4); BOOST_TEST((*t.begin()).second == mytype(5)); BOOST_TEST(t.size() == 2); BOOST_TEST(t.count_node() == 4); }
void SigSlotBase::unsupported() { rb_raise(rb_eArgError, "Cannot handle '%s' as %s argument\n", type().name(), mytype() ); }
mytype operator"" _mytype ( unsigned long long n ) { return mytype(n); }