Click here to Skip to main content
16,018,637 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: About file extension Pin
ThatsAlok21-Feb-07 5:59
ThatsAlok21-Feb-07 5:59 
QuestionHow make a smart reference expose methods of basetype ? Pin
Mr.Brainley20-Feb-07 23:05
Mr.Brainley20-Feb-07 23:05 
AnswerRe: How make a smart reference expose methods of basetype ? Pin
Cedric Moonen20-Feb-07 23:17
Cedric Moonen20-Feb-07 23:17 
GeneralRe: How make a smart reference expose methods of basetype ? [modified] Pin
Mr.Brainley20-Feb-07 23:54
Mr.Brainley20-Feb-07 23:54 
GeneralRe: How make a smart reference expose methods of basetype ? Pin
Cedric Moonen21-Feb-07 0:12
Cedric Moonen21-Feb-07 0:12 
GeneralRe: How make a smart reference expose methods of basetype ? Pin
Mr.Brainley21-Feb-07 0:42
Mr.Brainley21-Feb-07 0:42 
GeneralRe: How make a smart reference expose methods of basetype ? Pin
Cedric Moonen21-Feb-07 0:54
Cedric Moonen21-Feb-07 0:54 
GeneralRe: How make a smart reference expose methods of basetype ? Pin
Mr.Brainley21-Feb-07 1:18
Mr.Brainley21-Feb-07 1:18 
1. Yes, it's not used. Thought it might be possible to use it implicitly, so the code looks better.
2. Yes. It actually is a smart pointer internally, but i tried to give it reference semantics and syntax. I need this for a synchronization problem. I have a list of references that is accessed from many threads. If one thread retrieves a reference from that list, and the list is cleared while it works on the reference, the reference remains valid until it goes out of scope (if it is a smart reference). This way i can minimize synchronization to the pure access on the list.

Maybe it would be better if i just overloaded the '->'-operator. It would have pointer-syntax then, but that would be ok i guess.
AnswerRe: How make a smart reference expose methods of basetype ? Pin
prasad_som21-Feb-07 1:12
prasad_som21-Feb-07 1:12 
Questionfocus window Pin
rushiraj.jhala20-Feb-07 22:46
rushiraj.jhala20-Feb-07 22:46 
AnswerRe: focus window Pin
prasad_som20-Feb-07 22:53
prasad_som20-Feb-07 22:53 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:04
rushiraj.jhala20-Feb-07 23:04 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:11
prasad_som20-Feb-07 23:11 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:15
rushiraj.jhala20-Feb-07 23:15 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:19
prasad_som20-Feb-07 23:19 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:25
rushiraj.jhala20-Feb-07 23:25 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:51
prasad_som20-Feb-07 23:51 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:59
rushiraj.jhala20-Feb-07 23:59 
GeneralRe: focus window Pin
prasad_som21-Feb-07 1:28
prasad_som21-Feb-07 1:28 
GeneralRe: focus window Pin
prasad_som21-Feb-07 1:47
prasad_som21-Feb-07 1:47 
GeneralRe: focus window Pin
rushiraj.jhala21-Feb-07 2:38
rushiraj.jhala21-Feb-07 2:38 
AnswerRe: focus window Pin
toxcct20-Feb-07 22:54
toxcct20-Feb-07 22:54 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:05
rushiraj.jhala20-Feb-07 23:05 
Question"how to add Html help " Pin
harsh_296120-Feb-07 22:35
harsh_296120-Feb-07 22:35 
AnswerRe: how to add Html help Pin
Hamid Taebi20-Feb-07 23:46
professionalHamid Taebi20-Feb-07 23:46 

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.