Search:
Type: Posts; User: ssouffri
Search:
Search took 0.02 seconds.
-
December 20th, 2009, 12:00 PM
No, I'm sorry, "> >" did work ;-)
-
December 20th, 2009, 11:38 AM
It still doesn't compile. I get the same errors. My compiler is g++ 4.4.1.
-
December 20th, 2009, 10:46 AM
This question has probably come up before but I can't find an answer.
Why can't I declare something like:
TemplatedClassA<TemplatedClassB<int>> myFancyVariable;
The compiler refuses to...
-
November 12th, 2009, 05:55 AM
Thanks for the very interesting link. I'm sure I will be using volatile in my code but probably not this time since it also doesn't do exactly what I want.
Thanks to everybody for the help!
-
November 11th, 2009, 04:10 PM
No. I think you missed the point of what I would like to do. I'm not simply using inheritance because I like it. My whole point was that superbonzo's code doesn't allow me to restrict the behaviour...
-
November 11th, 2009, 02:54 PM
MinGW is a port of the gcc compiler to win32. Cygwin is a port of the posix binary interfaces to windows. So any posix program can run on cygwin while MinGW is just one program. When you install an...
-
November 11th, 2009, 02:44 PM
Well I'm not the only one working on my project. So it would be a safety measure for me as much as anyone else.
To bad you can't force this in C++. I'll have to put a few extra exclamation marks...
-
November 11th, 2009, 02:35 PM
Superbonzo his example only solves something if programmers wrap all their pointers in pseudo_const_ptr<T>. If they have "regular" pointers in their classes then the const method will still compile....
-
November 11th, 2009, 12:10 PM
I wish you were right but the code below compiles without errors or warnings.
class NotConstObject {
private:
int i;
public:
void nonConstMember(){
i=0;
-
November 10th, 2009, 11:44 AM
I know const can be overridden in more than one way but using const is at least a very strong reminder that an object should only be read. The main problem I have with a plain const method is that it...
-
November 9th, 2009, 02:58 PM
Hi,
I want to be able to declare a restriction in C++ so that a functor object can not change it's state or the state of any object it has a reference to upon calling the functor. This would have...
-
October 26th, 2009, 03:12 PM
I'm seeing some strange behavior I can't explain. I have the following code:
in eventq.hh
class EventQueue; // forward declaration
extern EventQueue mainEventQueue;
...
class...
-
April 10th, 2009, 05:33 AM
Thanks. Don't you just hate undefined behavior :-). To bad the gcc compiler doesn't even give a warning.
-
April 10th, 2009, 03:51 AM
Thanks. That solved the issue. I feel that the compiler could have picked up on this.
However the question remains why i can't recreate the runtime error with a simple example. Is the behavior of...
-
April 9th, 2009, 06:56 PM
Basically i get a "free(): invalid pointer: 0x00000000006de9b8" error. However it's not because i'm deleting the wrong pointer. The pointer was properly created with "new" and the one created and the...
-
March 31st, 2009, 01:51 PM
I feel so stupid right now. I'm not gonna make excuses, i just missed it. I'm relieved c++ does make sense. Thx
-
March 31st, 2009, 10:46 AM
I get a compiler eror for the following template class and have no idea how to fix it. I have no idea which dark c++ template magic is causing this. It should be clear from the code what I am trying...
-
March 30th, 2009, 11:00 AM
I know what causes error:
/usr/include/boost/noncopyable.hpp: In copy constructor ‘boost::signals::detail::signal_base::signal_base(const boost::signals::detail::signal_base&)’:...
|
Click Here to Expand Forum to Full Width
|