Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ssouffri

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,278

    Re: templated type as template type?

    No, I'm sorry, "> >" did work ;-)
  2. Replies
    6
    Views
    1,278

    Re: templated type as template type?

    It still doesn't compile. I get the same errors. My compiler is g++ 4.4.1.
  3. Replies
    6
    Views
    1,278

    templated type as template type?

    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...
  4. Re: howto restric a method to being absolutely constant

    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!
  5. Re: howto restric a method to being absolutely constant

    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...
  6. Replies
    13
    Views
    1,118

    Re: Does any kind person here use MinGW ?

    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...
  7. Re: howto restric a method to being absolutely constant

    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...
  8. Re: howto restric a method to being absolutely constant

    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....
  9. Re: howto restric a method to being absolutely constant

    I wish you were right but the code below compiles without errors or warnings.



    class NotConstObject {
    private:
    int i;
    public:
    void nonConstMember(){
    i=0;
  10. Re: howto restric a method to being absolutely constant

    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...
  11. howto restric a method to being absolutely constant

    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...
  12. construction of extern objects vs. "normal ones"

    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...
  13. Re: strange: dynamic casting and free(): invalid pointer

    Thanks. Don't you just hate undefined behavior :-). To bad the gcc compiler doesn't even give a warning.
  14. Re: strange: dynamic casting and free(): invalid pointer

    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...
  15. strange: dynamic casting and free(): invalid pointer

    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...
  16. Re: template conversion from _Rb_tree_const_iterator to non-scalar type _Rb_tree_iter

    I feel so stupid right now. I'm not gonna make excuses, i just missed it. I'm relieved c++ does make sense. Thx
  17. template conversion from _Rb_tree_const_iterator to non-scalar type _Rb_tree_iterator

    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...
  18. Replies
    5
    Views
    2,023

    Re: Compiler errors after installing Boost

    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&)’:...
Results 1 to 18 of 18


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center