Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: function time Pin
Ed Gadziemski15-Jun-02 4:11
professionalEd Gadziemski15-Jun-02 4:11 
GeneralRe: function time Pin
moliate15-Jun-02 7:39
moliate15-Jun-02 7:39 
GeneralResizing controls. Pin
NullStream15-Jun-02 0:01
NullStream15-Jun-02 0:01 
GeneralRe: Resizing controls. Pin
Paul Selormey15-Jun-02 1:20
Paul Selormey15-Jun-02 1:20 
GeneralEmpty class Pin
14-Jun-02 23:58
suss14-Jun-02 23:58 
GeneralRe: Empty class Pin
Christian Graus15-Jun-02 0:44
protectorChristian Graus15-Jun-02 0:44 
GeneralRe: Empty class Pin
Rama Krishna Vavilala15-Jun-02 1:09
Rama Krishna Vavilala15-Jun-02 1:09 
GeneralRe: Empty class Pin
Joaquín M López Muñoz15-Jun-02 1:42
Joaquín M López Muñoz15-Jun-02 1:42 
They have a role sometimes:
  • To define exceptions, as Rama pointed out.
  • To provide alternate constructors. Consider this example:
    struct chess_king{
      struct white{};
      struct black{};
      chess_king(const white&); //construct a white king
      chess_king(const black&); //construct a black king
      ...
    }
    We could have used bool to indicate wheter the piece is white or black, but defining the constructors with the empty classes white and black allow the compiler to optimize them away in release mode, which matters if you're writting highly speed critical code (this is not an academic example, I've actually used it for writing a game engine in the past.)


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralSimle question about HTTP... Pin
Artem Moroz14-Jun-02 23:10
Artem Moroz14-Jun-02 23:10 
GeneralRe: Simle question about HTTP... Pin
Mike Nordell16-Jun-02 5:56
Mike Nordell16-Jun-02 5:56 
GeneralRe: Simle question about HTTP... Pin
Artem Moroz16-Jun-02 6:04
Artem Moroz16-Jun-02 6:04 
GeneralRe: Simle question about HTTP... Pin
Mike Nordell16-Jun-02 6:55
Mike Nordell16-Jun-02 6:55 
GeneralRe: Simle question about HTTP... Pin
Artem Moroz16-Jun-02 10:48
Artem Moroz16-Jun-02 10:48 
GeneralRe: Simle question about HTTP... Pin
Mike Nordell17-Jun-02 17:53
Mike Nordell17-Jun-02 17:53 
GeneralDetect code page/encoding of a text... Pin
Paul Selormey14-Jun-02 21:00
Paul Selormey14-Jun-02 21:00 
GeneralRe: Detect code page/encoding of a text... Pin
Mike Nordell14-Jun-02 23:38
Mike Nordell14-Jun-02 23:38 
GeneralRe: Detect code page/encoding of a text... Pin
Paul Selormey15-Jun-02 1:17
Paul Selormey15-Jun-02 1:17 
GeneralRe: Detect code page/encoding of a text... Pin
Mike Nordell16-Jun-02 6:00
Mike Nordell16-Jun-02 6:00 
GeneralRe: Detect code page/encoding of a text... Pin
Paul Selormey16-Jun-02 14:05
Paul Selormey16-Jun-02 14:05 
GeneralRe: Detect code page/encoding of a text... Pin
Mike Nordell17-Jun-02 17:54
Mike Nordell17-Jun-02 17:54 
GeneralRe: Detect code page/encoding of a text... Pin
Michael Dunn15-Jun-02 6:07
sitebuilderMichael Dunn15-Jun-02 6:07 
GeneralRe: Detect code page/encoding of a text... Pin
Paul Selormey15-Jun-02 16:52
Paul Selormey15-Jun-02 16:52 
QuestionHow to use an ActiveX control in ATL Pin
LiamLee14-Jun-02 20:57
LiamLee14-Jun-02 20:57 
GeneralHeap mangament in a multithreaded windows application Pin
sailesh14-Jun-02 20:32
sailesh14-Jun-02 20:32 
GeneralRe: Heap mangament in a multithreaded windows application Pin
Joaquín M López Muñoz15-Jun-02 2:00
Joaquín M López Muñoz15-Jun-02 2:00 

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.