Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #13262
| From | BCFD36 <bcfd36@cruzio.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: " *first = new string(*rhs.first);" cannot compile in MSVC |
| Date | 2012-01-11 23:07 -0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jem0qh$mo6$1@speranza.aioe.org> (permalink) |
| References | <d29fdc08-5a93-47d6-a716-926803e54b36@k28g2000yqc.googlegroups.com> <9n6v0qFvfbU3@mid.individual.net> <dbd8d3b0-7de5-49f3-8fe4-ad7188e261ca@y12g2000yqc.googlegroups.com> <9n77vbFvfbU4@mid.individual.net> |
On 1/11/12 9:04 PM, Ian Collins wrote: > On 01/12/12 04:29 PM, fl wrote: [stuff deleted >> #define PERSON_H >> >> #include<string> >> >> using namespace std; > > Don't ever put this in a header! > It would be very helpful to the self stated rookie if you stated WHY this should not be done > > As Alf suggests, don't use pointers. > See above comment. If you have been doing this awhile, the answer is obvious. If you are an FNG, maybe not so obvious. -- Dave Scruggs Sr. Software Engineer, Lockheed Martin, Sunnyvale
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
" *first = new string(*rhs.first);" cannot compile in MSVC fl <rxjwg98@gmail.com> - 2012-01-11 18:22 -0800
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Ian Collins <ian-news@hotmail.com> - 2012-01-12 15:31 +1300
Re: " *first = new string(*rhs.first);" cannot compile in MSVC fl <rxjwg98@gmail.com> - 2012-01-11 19:29 -0800
Re: " *first = new string(*rhs.first);" cannot compile in MSVC "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-12 04:42 +0100
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Ian Collins <ian-news@hotmail.com> - 2012-01-12 18:04 +1300
Re: " *first = new string(*rhs.first);" cannot compile in MSVC BCFD36 <bcfd36@cruzio.com> - 2012-01-11 23:07 -0800
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Juha Nieminen <nospam@thanks.invalid> - 2012-01-12 08:12 +0000
Re: " *first = new string(*rhs.first);" cannot compile in MSVC "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-12 09:50 +0100
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Leigh Johnston <leigh@i42.co.uk> - 2012-01-12 12:36 +0000
Re: " *first = new string(*rhs.first);" cannot compile in MSVC "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-12 14:12 +0100
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Leigh Johnston <leigh@i42.co.uk> - 2012-01-12 13:36 +0000
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Juha Nieminen <nospam@thanks.invalid> - 2012-01-12 14:41 +0000
Re: " *first = new string(*rhs.first);" cannot compile in MSVC drew@furrfu.invalid (Drew Lawson) - 2012-01-12 14:50 +0000
Re: " *first = new string(*rhs.first);" cannot compile in MSVC Goran <goran.pusic@gmail.com> - 2012-01-11 23:12 -0800
csiph-web