Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - 8.1e - mutable doesn't work!
The "mutable" keyword apparently doesn't work... class Test { public: void modify() const { c = 1.0; } private: mutable double c; }; I'm getting the error "cannot modify const variable"... Unfortunaltely, I really need mutable to work in my application - Walter, what do you mean by "mutable implemented" in 8.1e ChangeLog? Laurentiu Sep 28 2001
On Fri, 28 Sep 2001 17:50:50 GMT, Laurentiu Pancescu wrote:The "mutable" keyword apparently doesn't work... class Test { public: void modify() const { c = 1.0; } private: mutable double c; }; Sep 28 2001
Christof Meerwald <NOSPAM_seeMySig fastrun.at> wrote:On Fri, 28 Sep 2001 17:50:50 GMT, Laurentiu Pancescu wrote:The "mutable" keyword apparently doesn't work... class Test { public: void modify() const { c = 1.0; } private: mutable double c; }; Sep 28 2001
On Fri, 28 Sep 2001 18:08:05 GMT, Laurentiu Pancescu wrote:I'm using <iostream>, <iomanip> and STLport 4.0, but mutable doesn't seem to be defined in there - I don't get what's going Sep 28 2001
Christof Meerwald <cmeerw web.de> wrote:On Fri, 28 Sep 2001 18:08:05 GMT, Laurentiu Pancescu wrote:I'm using <iostream>, <iomanip> and STLport 4.0, but mutable doesn't seem to be defined in there - I don't get what's going Sep 28 2001
Laurentiu Pancescu wrote in message <9p2fc2$26em$1 digitaldaemon.com>...I'm getting: Internal error: cg87 263 Sep 28 2001
"Walter" <walter digitalmars.com> wrote:Laurentiu Pancescu wrote in message <9p2fc2$26em$1 digitaldaemon.com>...I'm getting: Internal error: cg87 263 Sep 29 2001
All right. -Walter Laurentiu Pancescu wrote in message <9p3uhd$30ai$1 digitaldaemon.com>..."Walter" <walter digitalmars.com> wrote:Laurentiu Pancescu wrote in message <9p2fc2$26em$1 digitaldaemon.com>...I'm getting: Internal error: cg87 263 Sep 29 2001
"Walter" <walter digitalmars.com> wrote:All right. -Walter Laurentiu Pancescu wrote in message <9p3uhd$30ai$1 digitaldaemon.com>..."Walter" <walter digitalmars.com> wrote:Laurentiu Pancescu wrote in message <9p2fc2$26em$1 digitaldaemon.com>...I'm getting: Internal error: cg87 263 Sep 29 2001
Laurentiu Pancescu wrote in message <9p52um$l0p$1 digitaldaemon.com>...I hope you can fix this soon... I'm writing a numerical application for a friend (PhD student), who has a lot of calculations to do. Currently, it takes more than a week for a run (she wrote it in TurboPascal ;), so any speed improvement is more than welcome. I'm currently using DJGPP to generate a DOS extended app, since it's the fastest, but still DMC was about 50% faster than this. It could be about a few saved days at every run... Sep 29 2001
Hi, You really need to be looking in the directory stlport/config at the file 'stl_digital_mars.h' for the compiler configuration. I have just got back from doing some consultancy work in Sweden and will be looking at updating STLport 4.0 for the new compiler. I will then be porting STLport 4.5... As such I will see if I can narrow the mutable problem down in the STLport library. Though I can't promise any timescales. Regards Damian Christof Meerwald wrote:On Fri, 28 Sep 2001 18:08:05 GMT, Laurentiu Pancescu wrote:I'm using <iostream>, <iomanip> and STLport 4.0, but mutable doesn't seem to be defined in there - I don't get what's going Oct 01 2001
Thanks! My current focus is getting the regular STL 3.3 to work, but I'll see if any problems you isolate down can be fixed. -Walter Damian wrote in message <3BB890D5.2080509 netscape.net>...Hi, You really need to be looking in the directory stlport/config at the file 'stl_digital_mars.h' for the compiler configuration. I have just got back from doing some consultancy work in Sweden and will be looking at updating STLport 4.0 for the new compiler. I will then be porting STLport 4.5... As such I will see if I can narrow the mutable problem down in the STLport library. Though I can't promise any timescales. Regards Damian Christof Meerwald wrote:On Fri, 28 Sep 2001 18:08:05 GMT, Laurentiu Pancescu wrote:I'm using <iostream>, <iomanip> and STLport 4.0, but mutable doesn't seem to be defined in there - I don't get what's going Oct 01 2001
Damian <damiandixon netscape.net> wrote:Hi, You really need to be looking in the directory stlport/config at the file 'stl_digital_mars.h' for the compiler configuration. I have just got back from doing some consultancy work in Sweden and will be looking at updating STLport 4.0 for the new compiler. I will then be porting STLport 4.5... As such I will see if I can narrow the mutable problem down in the STLport library. Though I can't promise any timescales. Oct 01 2001
Christof Meerwald <NOSPAM_seeMySig fastrun.at> wrote:On Fri, 28 Sep 2001 17:50:50 GMT, Laurentiu Pancescu wrote:The "mutable" keyword apparently doesn't work... class Test { public: void modify() const { c = 1.0; } private: mutable double c; }; Sep 28 2001
|