I'm going to request some user configuration via json from the server that contains two types of data like (`usrID`, `bool`), and (`usrID`, `int`). so, I created two map to classify and reload two functions with the same name to put the data into the corresponding map after parsed. 

For the sake of refinement, I used the `auto` keyword of C++11 to initialize a variable without assign and determined its type whether bool or int mentioned above through assigned by parse function, so as to call the overloaded function directly to store them.
But it causes compiler error that cannot use a auto variable without assign.

```
bool fromStringtoBool() {……}
int  fromStringtoInt() {……}

void setAppidConfig(int,bool);
void setAppidConfig(int,int);
……
……
void main func()
{
    ……
    int usrId;
    auto value;
    if(isBool())
    {
       value = fromStringtoBool();
    }
    else
    {
       value = fromStringtoInt();
    }

    setAppidConfig(usrId,value)
    ……
}

```

Is it possible to implement the above logic in C++ ?