Angus Leeming <[EMAIL PROTECTED]> writes:
| Lars,
|
| I've been looking at your fix. Sometimes you use
| make_pair(string(), string())
| Sometimes
| pair<string, string>()
|
| which should I use? Indeed, should I use
| string str1=...;
| string str2=...;
| make_pair(str1, str2)
| ?
Yes, I could not quite make up my mind about what method to se...
I _think_ I prefere the make_pair method.
One small note:
If you have not noticed we have a nice function in boost/utility.hpp:
pair<string, string> GetPair() {
return make_pair(string("Hello"), string("World"));
}
string a;
string b;
tie(a, b) = GetPair();
Assert(a == "Hello" && b == "World");
Lgb