473,320 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

workaround for operator dot

Since operator dot ('.') is not defined, is there
maybe a workaround solution possible?

Jul 23 '05 #1
8 1388
Uenal Mutlu wrote:
Since operator dot ('.') is not defined, is there
maybe a workaround solution possible?


A solution to what problem?

Jul 23 '05 #2
"Old Wolf" wrote
Uenal Mutlu wrote:
Since operator dot ('.') is not defined, is there
maybe a workaround solution possible?


A solution to what problem?


operator.()
Jul 23 '05 #3
Uenal Mutlu wrote:
"Old Wolf" wrote
Uenal Mutlu wrote:
> Since operator dot ('.') is not defined, is there
> maybe a workaround solution possible?


A solution to what problem?


operator.()


What is operator.()?
Jul 23 '05 #4
Alvin wrote:
Uenal Mutlu wrote:
"Old Wolf" wrote
Uenal Mutlu wrote:
Since operator dot ('.') is not defined, is there
maybe a workaround solution possible?

A solution to what problem?


operator.()


What is operator.()?


My guess is the OP wants to overload it. Since it is not
allowed, the OP wants to see what is available.

To the OP: operator-> is available, operator*() is available.
Make use of those.

V
Jul 23 '05 #5
"Victor Bazarov" wrote
Alvin wrote:
Uenal Mutlu wrote:
"Old Wolf" wrote
Uenal Mutlu wrote:
> Since operator dot ('.') is not defined, is there
> maybe a workaround solution possible?

A solution to what problem?

operator.()
What is operator.()?


My guess is the OP wants to overload it. Since it is not
allowed, the OP wants to see what is available.


Exactly.
To the OP: operator-> is available, operator*() is available.
Make use of those.


I know, but I would like to overload the dot to route
the access to a different class.
I have the feeling that this is somehow already possible,
but haven't figured out yet how.
Jul 23 '05 #6
Uenal Mutlu wrote:
[...]
I know, but I would like to overload the dot to route
the access to a different class.
I have the feeling that this is somehow already possible,
but haven't figured out yet how.

Well, you might want to hold onto that feeling. Nothing
compares to a dream that can never come true.

Oh, if you ever figure it out, come back and share. C++
programmers love to be surprised when it comes to C++.
Jul 23 '05 #7
Uenal Mutlu wrote:
To the OP: operator-> is available, operator*() is available.
Make use of those.


I know, but I would like to overload the dot to route
the access to a different class.
I have the feeling that this is somehow already possible,
but haven't figured out yet how.


You might look at the delegation mechanism described here:

http://www.kangaroologic.com/interfa....html?path=2.6

as part of the proposed Boost Interfaces library.
(http://www.kangaroologic.com/interfa....html?path=2.6
)

An updated version will be available soon.

Jonathan
Jul 23 '05 #8
"Victor Bazarov" wrote
Uenal Mutlu wrote:
[...]
I know, but I would like to overload the dot to route
the access to a different class.
I have the feeling that this is somehow already possible,
but haven't figured out yet how.

Well, you might want to hold onto that feeling. Nothing
compares to a dream that can never come true.

Oh, if you ever figure it out, come back and share. C++
programmers love to be surprised when it comes to C++.


Believe it or not, but I've got it! It is possible! And it is so simple.
I'll post it soon. Stay tuned :-)
Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: klappnase | last post by:
Hello everyone, there have already been a couple of threads about IDLE's sometimes annoying disability to use special characters (in my case I would like to use for example german umlauts like...
1
by: joesoap | last post by:
Hi can anybody please tell me what is wrong with my ostream operator??? this is the output i get using the 3 attached files. this is the output after i run assignment2 -joesoap #include...
0
by: Jonas Smithson | last post by:
<div style="position: relative;> <!-- I'm the parent --> blah blah blah <div style="position: absolute; bottom: 0;> <!-- I'm the child --> blah blah blah </div> </div> The bottom of the...
7
by: Justin Shen | last post by:
the output of the following codes is "greater than zero", which is rather strange! the correct one should be "not greater than zero" int a = 0x79de61c0; //2044617152; a += 0x12345678; //a is...
9
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
1
by: slyi | last post by:
Hi All, Does anyone use vml to force the printing of background-colors in IE clients? Regards, slyi eg: <html xmlns:v="urn:schemas-microsoft-com:vml" >
37
by: Allen Browne | last post by:
If you develop for others, you probably have multiple versions of Access installed so you can edit and create MDEs for clients in different versions. This works fine under Windows XP, even with...
0
by: William Johnston | last post by:
Hi, A support technician proposed a workaround to black images created for thumbnails. The code to create a thumbnail is below: //passes results to Response.OutputStream private void...
3
by: AleXmanFree | last post by:
Hi , I have got problem with passing my inline based value to y user control (or custom control, no matter which one I use, I have tried both to make sure it doesnt matter) . So say I have...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.