Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVisual C++ and Ref counted std::string Pin
Giles29-Jan-08 0:01
Giles29-Jan-08 0:01 
GeneralRe: Visual C++ and Ref counted std::string Pin
led mike8-Feb-08 8:53
led mike8-Feb-08 8:53 
Generalstrange grammar about volatile and operator overload Pin
George_George28-Jan-08 23:47
George_George28-Jan-08 23:47 
AnswerRe: strange grammar about volatile and operator overload Pin
Rajkumar R29-Jan-08 1:45
Rajkumar R29-Jan-08 1:45 
GeneralRe: strange grammar about volatile and operator overload Pin
George_George29-Jan-08 14:09
George_George29-Jan-08 14:09 
AnswerRe: strange grammar about volatile and operator overload Pin
Rajkumar R29-Jan-08 17:46
Rajkumar R29-Jan-08 17:46 
GeneralRe: strange grammar about volatile and operator overload Pin
George_George29-Jan-08 18:11
George_George29-Jan-08 18:11 
GeneralRe: strange grammar about volatile and operator overload Pin
Maxwell Chen29-Jan-08 18:27
Maxwell Chen29-Jan-08 18:27 
Rajkumar_R wrote:
const Outer::Inner * innerObj = (const Outer::Inner * )(OuterObj);


This does not compile.


Rajkumar_R wrote:
const Outer::Inner * &innerObj = (const Outer::Inner * &)(OuterObj);


This compiles, but the member operator function is not invoked.


My modification below.
class O
{
public:
  class I
  { } m;
  const I* operator &() {
    printf("const I* operator & \n");
    return &m;
  }
};
void main()
{
  O  v;
  const O::I* p = &v;
}

Output:
const I* operator &


  Maxwell Chen

AnswerRe: strange grammar about volatile and operator overload Pin
Rajkumar R29-Jan-08 19:08
Rajkumar R29-Jan-08 19:08 
GeneralRe: strange grammar about volatile and operator overload Pin
Maxwell Chen29-Jan-08 19:30
Maxwell Chen29-Jan-08 19:30 
GeneralRe: strange grammar about volatile and operator overload Pin
Rajkumar R29-Jan-08 19:37
Rajkumar R29-Jan-08 19:37 
GeneralRe: strange grammar about volatile and operator overload Pin
Maxwell Chen29-Jan-08 19:45
Maxwell Chen29-Jan-08 19:45 
GeneralShell Contet Menu Pin
john563228-Jan-08 23:45
john563228-Jan-08 23:45 
GeneralRe: Shell Contet Menu Pin
Iain Clarke, Warrior Programmer28-Jan-08 23:55
Iain Clarke, Warrior Programmer28-Jan-08 23:55 
QuestionHow to capture shutdown notification when Windows Shutdown Pin
Abhijit A28-Jan-08 23:37
Abhijit A28-Jan-08 23:37 
AnswerRe: How to capture shutdown notification when Windows Shutdown Pin
Maxwell Chen28-Jan-08 23:42
Maxwell Chen28-Jan-08 23:42 
GeneralRe: How to capture shutdown notification when Windows Shutdown Pin
Abhijit A29-Jan-08 0:37
Abhijit A29-Jan-08 0:37 
AnswerRe: How to capture shutdown notification when Windows Shutdown Pin
Mark Salsbery29-Jan-08 5:51
Mark Salsbery29-Jan-08 5:51 
AnswerRe: How to capture shutdown notification when Windows Shutdown Pin
Stephen Hewitt29-Jan-08 12:13
Stephen Hewitt29-Jan-08 12:13 
GeneralListView item selection Pin
ilgale28-Jan-08 23:37
ilgale28-Jan-08 23:37 
GeneralRe: ListView item selection Pin
Iain Clarke, Warrior Programmer28-Jan-08 23:57
Iain Clarke, Warrior Programmer28-Jan-08 23:57 
GeneralRe: ListView item selection Pin
ilgale29-Jan-08 0:21
ilgale29-Jan-08 0:21 
GeneralUrgent Help ~!! Convert Lab to RGB Pin
azusakt28-Jan-08 23:17
azusakt28-Jan-08 23:17 
GeneralRe: Urgent Help ~!! Convert Lab to RGB Pin
Rajesh R Subramanian28-Jan-08 23:31
professionalRajesh R Subramanian28-Jan-08 23:31 
GeneralRe: Urgent Help ~!! Convert Lab to RGB [modified] Pin
azusakt29-Jan-08 15:26
azusakt29-Jan-08 15:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.