I think operator + is left associative operator, that means the one defined in string template doesn't work on the expression "XYZ" + ss. I think the compiler uses automatical datatype conversion on this expression instead of what you said. And probably the automatical datatype conversion has a...
Anybody could explain this:
On Sun 10, CC version is Sun C++ 5.7 2005/01/07
I have this code:
string mystr("ABC"), ss("123");
mystr.append("XYZ" + ss);
The compiler doesn't print any warning on append() line, but indeed this is a bug I am currently suffering, could anybody know how the Sun's...
Hello,
Anyone knows how to disable colored text displayed on xterm window screen? I hate that color making me hard to read when front and background color are similar.
For example, when I run "ls" shell command, the color for directory is dark blue, but my background color is black, it's...
I don't think this is a fix, but a workaround depends how complicate with your requirement:
start > log
cat log
I am also wondering why pipe could cause this issue.
OK, let me clarify the question.
We can see the only difference is:
1:
f(new MyClass);
and
2:
MyClass m;
f(&m);
So, the question is:
Why "void f(MyClass *& mc)" is compilable with "1", ,but cannot with "2"?
Actually I compiled code 1 with AIX's xlC and Solaris' CC, xlC got an error, but...
compile following code is OK:
<code>
class MyClass
{
public:
int i;
};
void f(MyClass *& mc) {;}
int main()
{
f(new MyClass);
return 0;
}
</code>
but the following is not OK, why?
<code>
class MyClass
{
public:
int i;
};
void f(MyClass *& mc) {;}
int main()
{
MyClass m...
xml file is just a flat text file. if likes your saying, Weblogic will use it, Weblogic should take the responsibility to expand $MY_LOGFILE_LOC in xml file.
But, if you are looking for a method to substitute $MY_LOGFILE_LOC by its value in shell, you can write a tool to do that.
khz, thanks for your example. It works perfectly with ksh. But my original question is for tcsh. Any example? I've tried similar with your example, but it doesn't work.
Currently I am working on AIX/SUN/HP with tcsh,
set prompt = "%{\033[7m>>\033[m%} "
it will highlight the prompt, but there is a side effect on SUN, when I edit command line with cursor keys and backspace key, the command line is massed up.
Anyone has a good solution?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.