void parseChildren( xml_node<> &parent )
{
    for( xml_node<>* node = parent .first_node()->first_node(); node; node = node->next_sibling() )
    {
        parseNode( node );
        parseChildren( *node );
    }
}
void foo()
{
    xml_node<> *rootNode = doc.first_node();
    if ( rootNode )
        parseChildren( *rootNode );
}//header
class Foo
{
static int Bar;
};
//source
int Foo::Bar = 0; //инициализация статической переменнойstd::vector< int > initializeBar()
{
    std::vector< int > res;
    res.push_back( 1 );
    res.push_back( 2 );
    return res;
}
void foo()
{
    static std::vector< int > Bar = initializeBar(); //или можно просто = { 1, 2}, например
}