#include <iostream>

struct Foo
{
    void* address;
    bool testFlag;
    
    Foo ( ) : address(NULL), testFlag(false)
    {
        std::cout << "Foo default constructor called" << std::endl;
    }
    explicit Foo (bool Flag) : address(NULL), testFlag(Flag)
    {
        std::cout << "Foo (bool) constructor called" << std::endl;
    }
    explicit Foo (void* Pointer) : address(Pointer), testFlag(false)
    {
        std::cout << "Foo (void const*) constructor called" << std::endl;
    }
    Foo (void* Pointer, bool Flag) : address(Pointer), testFlag(Flag)
    {
        std::cout << "Foo (void*, bool) constructor called" << std::endl;
    }
};

int main(void)
{
    std::size_t* test = new std::size_t;
    
    Foo a (test);
    std::cout << a.address << ' ' << a.testFlag << std::endl;
    
    Foo b (false);
    std::cout << b.address << ' ' << b.testFlag << std::endl;
    
    Foo c (true);
    std::cout << c.address << ' ' << c.testFlag << std::endl;
    
    Foo d;
    std::cout << d.address << ' ' << d.testFlag << std::endl;
    
    Foo e (test, true);
    std::cout << e.address << ' ' << e.testFlag << std::endl;
    
    delete test;
}