Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Broken code? [modified] Pin
Tydia-kun18-Oct-07 15:26
Tydia-kun18-Oct-07 15:26 
GeneralRe: Broken code? Pin
User 58385218-Oct-07 17:04
User 58385218-Oct-07 17:04 
GeneralRe: Broken code? Pin
Tydia-kun19-Oct-07 0:35
Tydia-kun19-Oct-07 0:35 
GeneralRe: Broken code? Pin
Maximilien19-Oct-07 1:39
Maximilien19-Oct-07 1:39 
GeneralRe: Broken code? Pin
Tydia-kun19-Oct-07 1:41
Tydia-kun19-Oct-07 1:41 
QuestionRe: Broken code? Pin
Maximilien19-Oct-07 3:26
Maximilien19-Oct-07 3:26 
AnswerRe: Broken code? Pin
Tydia-kun19-Oct-07 3:38
Tydia-kun19-Oct-07 3:38 
GeneralRe: Broken code? Pin
User 58385221-Oct-07 12:51
User 58385221-Oct-07 12:51 
Tydia-kun wrote:
Yes, they are and that's the whole point of the overloaded assignment operator (=).


No its not. The point of the assignment operator is to assign the value of one object to the value of another. For that to be possible the objects have to be of the same type. Templates are nothing but code generation. When you declare vector<int> and vector<string> they are completely differnt types and have no common interface. If you want to perforam assignment between the two you have to write a specific operator. You cannt write a generic one
GeneralRe: Broken code? Pin
Tydia-kun23-Oct-07 7:13
Tydia-kun23-Oct-07 7:13 
GeneralRe: Broken code? Pin
John R. Shaw18-Oct-07 17:45
John R. Shaw18-Oct-07 17:45 
GeneralRe: Broken code? Pin
Tydia-kun19-Oct-07 0:36
Tydia-kun19-Oct-07 0:36 
QuestionHow to dock a dialog box Pin
s196675m18-Oct-07 11:18
s196675m18-Oct-07 11:18 
Questionstring vs string* Pin
pourang18-Oct-07 8:40
pourang18-Oct-07 8:40 
AnswerRe: string vs string* Pin
Nemanja Trifunovic18-Oct-07 9:08
Nemanja Trifunovic18-Oct-07 9:08 
GeneralRe: string vs string* Pin
pourang18-Oct-07 10:49
pourang18-Oct-07 10:49 
GeneralRe: string vs string* Pin
Nemanja Trifunovic18-Oct-07 12:03
Nemanja Trifunovic18-Oct-07 12:03 
GeneralRe: string vs string* Pin
pourang19-Oct-07 1:23
pourang19-Oct-07 1:23 
QuestionGetting MX records without using DnsQuery() Pin
jadothebest18-Oct-07 6:55
jadothebest18-Oct-07 6:55 
AnswerRe: Getting MX records without using DnsQuery() Pin
Mike Dimmick18-Oct-07 7:10
Mike Dimmick18-Oct-07 7:10 
QuestionCView class help [modified] Pin
Hakan Bulut18-Oct-07 6:25
Hakan Bulut18-Oct-07 6:25 
AnswerRe: CView class help Pin
toxcct18-Oct-07 6:27
toxcct18-Oct-07 6:27 
GeneralRe: CView class help Pin
Hakan Bulut18-Oct-07 6:46
Hakan Bulut18-Oct-07 6:46 
GeneralRe: CView class help Pin
toxcct18-Oct-07 6:48
toxcct18-Oct-07 6:48 
GeneralRe: CView class help Pin
Hakan Bulut18-Oct-07 6:56
Hakan Bulut18-Oct-07 6:56 
GeneralRe: CView class help Pin
toxcct18-Oct-07 6:59
toxcct18-Oct-07 6:59 

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.