473,406 Members | 2,259 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,406 software developers and data experts.

What is T*VQ&

what does T*VQ& mean where

T is object type,
VQ is volatile or empty,

Is this correct,

struct X {};

volatile X ox;
X* px=&ox;

Help
Dwaach.

Jul 23 '05 #1
8 1629
> what does T*VQ& mean where

T is object type,
VQ is volatile or empty,

If I understand your question correctly,

T *VQ& o;

would mean that 'o' is a [volatile] reference to a pointer to a T.
Is this correct, struct X {};

volatile X ox;
X* px=&ox;


What are you asking? Does this compile? Yes it does.
Jonathan

Jul 23 '05 #2
dwaach wrote:
what does T*VQ& mean where

T is object type,
VQ is volatile or empty,
It's a declarator of a [volatile or plain] pointer to an object of T.
Is this correct,

struct X {};

volatile X ox;
ox is a volatile object of type X.
X* px=&ox;


px is a regular pointer to an object of type X. You attempt to initialise
it with the address of a volatile object, which is not allowed. You can
only expect the compiler to convert from a pointer to a less-qualified to
more-qualified object. IOW, legal implicit conversions include

[] -> const
[] -> volatile
const -> const volatile
volatile -> const volatile

where [] means "noting" or "plain".

V
Jul 23 '05 #3
Jonathan Mcdougall wrote:
[...]
It is customary, Jonathan, to leave the name of the previous poster in
so that people knew to whom you're replying...
struct X {};

volatile X ox;
X* px=&ox;

What are you asking? Does this compile? Yes it does.


No, it does not. Go check.

V
Jul 23 '05 #4
Victor Bazarov wrote:
dwaach wrote:
what does T*VQ& mean where

T is object type,
VQ is volatile or empty,

It's a declarator of a [volatile or plain] pointer to an object of T.


My mistake. Should of course be

It's a declarator of a reference to a [volatile or plain] pointer to
an object of T.

V
Jul 23 '05 #5
> Victor Bazarov wrote:
Jonathan Mcdougall wrote:
[...]
It is customary, Jonathan, to leave the name of the previous poster in
so that people knew to whom you're replying...
Unfortunately, Google groups does not quote the message when anwering.
It has to be done manually and this is something I forgot to do. All my
excuses Victor.
struct X {};

volatile X ox;
X* px=&ox;
What are you asking? Does this compile? Yes it does.

No, it does not. Go check.


Cannot convert from volatile X* to X*, yeah, I know. Back to bed.
Jonathan

Jul 23 '05 #6
Jonathan Mcdougall wrote:
Victor Bazarov wrote:
Jonathan Mcdougall wrote:
[...]


It is customary, Jonathan, to leave the name of the previous poster in
so that people knew to whom you're replying...


Unfortunately, Google groups does not quote the message when anwering.
It has to be done manually and this is something I forgot to do. All my
excuses Victor.


It does. Click on "show options" next to the name of the poster you
want to reply to, and then choose "Reply" from the options. If you just
click on the reply at the bottom of the post you won't have any quoted
text.

Jul 23 '05 #7
Bart wrote:
Jonathan Mcdougall wrote:
Victor Bazarov wrote:
Jonathan Mcdougall wrote:
>> [...]

It is customary, Jonathan, to leave the name of the previous poster in
so that people knew to whom you're replying...


Unfortunately, Google groups does not quote the message when anwering.
It has to be done manually and this is something I forgot to do. All my
excuses Victor.


It does. Click on "show options" next to the name of the poster you
want to reply to, and then choose "Reply" from the options. If you just
click on the reply at the bottom of the post you won't have any quoted
text.


Dang.
Jonathan

Jul 23 '05 #8
Hi, Jonathan,Victor and Bart

Thanks a lot for the great help.

Things are getting clear now...

Good day !
Dwaach...

Jul 23 '05 #9

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

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
6
by: cj | last post by:
I'm receiving an xml formatted string that I pull data from by reading it into an xml document like this: Dim doc As New Xml.XmlDocument doc.LoadXml(respstr) Dim co_name As Xml.XmlNodeList =...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
13
by: Ragnar | last post by:
Hi, 2 issues left with my tidy-work: 1) Tidy transforms a "&amp;" in the source-xml into a "&" in the tidied version. My XML-Importer cannot handle it 2) in a long <title>-string a wrap is...
3
by: Tony | last post by:
I see that many pages have &amp; in querystring instead &. What is difference? Can I put page link (url) www.mysite.com/mypage.aspx?lang=EN&ID=15 or I need to write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.