Click here to Skip to main content
15,501,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStatic linking Pin
Member 112017882-Nov-14 23:27
MemberMember 112017882-Nov-14 23:27 
AnswerRe: Static linking Pin
Garth J Lancaster2-Nov-14 23:37
professionalGarth J Lancaster2-Nov-14 23:37 
AnswerRe: Static linking Pin
Richard MacCutchan3-Nov-14 0:09
mveRichard MacCutchan3-Nov-14 0:09 
AnswerRe: Static linking Pin
Albert Holguin3-Nov-14 12:31
professionalAlbert Holguin3-Nov-14 12:31 
GeneralRe: Static linking Pin
Member 112017884-Nov-14 0:31
MemberMember 112017884-Nov-14 0:31 
AnswerRe: Static linking Pin
Albert Holguin4-Nov-14 5:24
professionalAlbert Holguin4-Nov-14 5:24 
QuestionTemplate Class Pointer - Would like explanation for unexpected behavior Pin
Foothill2-Nov-14 9:01
professionalFoothill2-Nov-14 9:01 
AnswerRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
Richard MacCutchan2-Nov-14 9:13
mveRichard MacCutchan2-Nov-14 9:13 
C++
private:
T** _array;

Why is this an array of pointers to T types, rather than just an array of T types? Woudl it not be better to have something like:
C++
T* _array;

// ...

_array = new T[CORE_ARRAY_DEFAULT_LENGTH];

// ...

T operator [] (int index) const
{
if ((index < 0) || (index >= _length))
   throw std::out_of_range("index");
else
   return _array[index];
}
// etc

GeneralRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
Foothill2-Nov-14 9:44
professionalFoothill2-Nov-14 9:44 
AnswerRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
Freak303-Nov-14 3:50
MemberFreak303-Nov-14 3:50 
GeneralRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
Foothill3-Nov-14 6:59
professionalFoothill3-Nov-14 6:59 
GeneralRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
the_foobar3-Dec-14 21:26
Memberthe_foobar3-Dec-14 21:26 
AnswerRe: Template Class Pointer - Would like explanation for unexpected behavior Pin
Volynsky Alex5-Nov-14 0:12
professionalVolynsky Alex5-Nov-14 0:12 
QuestionERROR No Target Architecture Pin
ForNow1-Nov-14 18:05
MemberForNow1-Nov-14 18:05 
SuggestionRe: ERROR No Target Architecture Pin
Richard MacCutchan1-Nov-14 23:03
mveRichard MacCutchan1-Nov-14 23:03 
GeneralRe: ERROR No Target Architecture Pin
ForNow2-Nov-14 5:04
MemberForNow2-Nov-14 5:04 
GeneralRe: ERROR No Target Architecture Pin
Richard MacCutchan2-Nov-14 6:49
mveRichard MacCutchan2-Nov-14 6:49 
QuestionHow to protect a member function Pin
Drugodrf31-Oct-14 5:35
MemberDrugodrf31-Oct-14 5:35 
AnswerRe: How to protect a member function Pin
Jochen Arndt31-Oct-14 6:18
professionalJochen Arndt31-Oct-14 6:18 
AnswerRe: How to protect a member function Pin
Chris Losinger31-Oct-14 6:18
professionalChris Losinger31-Oct-14 6:18 
GeneralRe: How to protect a member function Pin
Drugodrf3-Nov-14 3:31
MemberDrugodrf3-Nov-14 3:31 
AnswerRe: How to protect a member function Pin
Albert Holguin3-Nov-14 12:39
professionalAlbert Holguin3-Nov-14 12:39 
AnswerRe: How to protect a member function Pin
Aescleal4-Nov-14 3:29
MemberAescleal4-Nov-14 3:29 
GeneralRe: How to protect a member function Pin
Drugodrf4-Nov-14 8:41
MemberDrugodrf4-Nov-14 8:41 
GeneralRe: How to protect a member function Pin
Aescleal4-Nov-14 22:27
MemberAescleal4-Nov-14 22:27 

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.