Beispiel #1
0
int main()
{
    {
        ConstructByValue cbv(Tmp(1));
        std::cout << "------------------------" << std::endl;
        ConstructByCRef cbcr(Tmp(1));
        std::cout << "------------------------" << std::endl;
        (void)cbv;
        (void)cbcr;
    }
    {
        const Tmp t(1);
        std::cout << "------------------------" << std::endl;
        ConstructByValue cbv(t);
        std::cout << "------------------------" << std::endl;
        ConstructByCRef cbcr(t);
        std::cout << "------------------------" << std::endl;
        (void)cbv;
        (void)cbcr;
    }
}
Beispiel #2
0
static void log_window_AddChkBox(log_window *parent, LOGT flags, const wxString &str, wxSizer *sz) {
	ChkBoxLFFlagValidator cbv(flags, &parent->lo_flags);
	wxCheckBox *chk = new wxCheckBox(parent, wxID_ANY, str, wxDefaultPosition, wxDefaultSize, wxCHK_3STATE, cbv);
	sz->Add(chk, 0, 0, 0);
}