Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10604
| From | red floyd <no.spam.here@its.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Half templates does not work. |
| Date | 2011-09-29 21:16 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <j63fra$npc$1@dont-email.me> (permalink) |
| References | <d82bd711-cf85-4a8b-acda-cbd4482f2f4d@18g2000yqz.googlegroups.com> |
On 9/29/2011 4:25 PM, Nephi Immortal wrote: > I created two templates. First template is like trait types. Second > template includes first template. Everything works fine except second > template. > > The error message reports: > > Main.cpp > c:\my projects\main.cpp(230): fatal error C1001: An internal error has > occurred in the compiler. > (compiler file 'msc1.cpp', line 1420) > To work around this problem, try simplifying or changing the > program near the locations listed above. > Please choose the Technical Support command on the Visual C++ > Help menu, or open the Technical Support help file for more > information > > I searched several websites. I was unable to find the solution. I > checked C++ Template - The Complete Guide book and the section shows > 4.3 Restrictions for Nontype Template Parameters. > There may be no problem with your code. It is reporting an internal error in the compiler (it got in a state it shouldn't have). Check with a different compiler (or even a different version of the MSVC).
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Half templates does not work. Nephi Immortal <immortalnephi@gmail.com> - 2011-09-29 16:25 -0700
Re: Half templates does not work. red floyd <no.spam.here@its.invalid> - 2011-09-29 21:16 -0700
Re: Half templates does not work. Nephi Immortal <immortalnephi@gmail.com> - 2011-09-30 05:15 -0700
Re: Half templates does not work. Miles Bader <miles@gnu.org> - 2011-10-01 07:35 +0900
Re: Half templates does not work. Noah Roberts <roberts.noah@gmail.com> - 2011-09-30 09:25 -0700
Re: Half templates does not work. Nephi Immortal <immortalnephi@gmail.com> - 2011-09-30 12:17 -0700
Re: Half templates does not work. Ian Collins <ian-news@hotmail.com> - 2011-10-01 09:08 +1300
csiph-web