So, I can use tie(name,dir) in all those places where I've been doing:
pair<string,string> dir1(name, dir);
? I'll have a go.
Here is another question for you. In LyXRC::output() there are the lines:
//case RC_SET_COLOR:
// color bindings not written to preference file.
// And we want to be warned about that. (Lgb)
I take it that this is a temporary warning? I can now modify the LColors from
FormPreferences, so will uncomment these lines and insert the relevant code.
Trust this is corrent?
Angus
On Wednesday 15 November 2000 12:05, Lars Gullik Bjønnes wrote:
> 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