Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » problem with String and == operator in 608-dev1
problem with String and == operator in 608-dev1 [message #4802] Tue, 22 August 2006 18:10 Go to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
With 607-dev1 and MSC8 I could compile the following code:
...
	if ( AsString(~editCountry) == Null) editCountry <<= "---";
...

Now with 608-dev1 the compiler cry:
C:\Vega\Vega5\VegaTab1.cpp(179) : error C2593: 'operator ==' is ambiguous
        C:\upp\uppsrc\Core/Value.h(187): could be 'bool operator ==(String,const Value &)'
        C:\upp\uppsrc\Core/String.h(154): or 'bool AString<T,S>::operator ==(const S &,const S &)' [found usi
	ng argument-dependent lookup]
        with
        [
            T=char,
            S=String
        ]
        while trying to match the argument list '(String, const Nuller)'

Is something changed during the holidays? (even Mingw complain about '==' operator)

Luigi

[Updated on: Tue, 22 August 2006 18:10]

Report message to a moderator

Re: problem with String and == operator in 608-dev1 [message #4803 is a reply to message #4802] Tue, 22 August 2006 18:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I will check this, however, I recommend using IsNull function instead!

Mirek
Re: problem with String and == operator in 608-dev1 [message #4807 is a reply to message #4803] Tue, 22 August 2006 20:02 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Tue, 22 August 2006 18:44

I will check this, however, I recommend using IsNull function instead!

Mirek


I've converted all "== Null" in IsNull(). The application now compile and then crash. Confused

Luigi
Re: problem with String and == operator in 608-dev1 [message #4808 is a reply to message #4807] Tue, 22 August 2006 20:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I bet it has another reason than IsNull...

Can you spot the crash point (in debug mode using debugger)?

Mirek
Re: problem with String and == operator in 608-dev1 [message #4809 is a reply to message #4808] Tue, 22 August 2006 20:30 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Tue, 22 August 2006 20:06

Well, I bet it has another reason than IsNull...

Can you spot the crash point (in debug mode using debugger)?

Mirek

I bet with you Smile .
I'm not friendly with debugger but I'll try as soon as possibly... Now I'm recovering a lost partition of my hard disk...

Luigi
Previous Topic: Bug in "NTL - Transfer semantics" documentation
Next Topic: encryption
Goto Forum:
  


Current Time: Sun Apr 28 20:55:43 CEST 2024

Total time taken to generate the page: 0.08757 seconds