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

Search:

Type: Posts; User: laserlight

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    217

    Re: A question regarding protected member

    Because the rule is that "an implicitly-declared copy/move assignment operator is an inline public member of its class" (C++11 Clause 12.8 Paragraph 22b). That the base class' copy assignment...
  2. Replies
    12
    Views
    217

    Re: A question regarding protected member

    There is a rule that says that if you do not declare the copy assignment operator for a class, a copy assignment operator will be implicitly defined. This implicitly defined copy assignment operator...
  3. Replies
    12
    Views
    217

    Re: A question regarding protected member

    Because foo has protected access, whereas the compiler supplied copy assignment operator for D has public access.
  4. Replies
    12
    Views
    217

    Re: A question regarding protected member

    Class D has its own copy assignment operator provided by the compiler.
  5. Replies
    8
    Views
    303

    Re: Getline error

    In other words, as the compiler warnings posted by jlb1 point out, you are actually passing a null pointer constant to a constructor of the string object. Since that particular constructor expects a...
  6. Replies
    7
    Views
    174

    Re: std::vector with negative subscript?

    You cannot access an array with a negative subscript because that would be accessing the array out of bounds. What you can do is to have a pointer point to somewhere in the middle of the array, upon...
  7. Re: How to make boost catch some exceptions when a shared_ptr is null?

    Why not just check if they are null smart pointers?
  8. Re: error C2678: binary '

    If you overload operator< as a non-member, then it should look like this:

    bool operator < (const AABB& lhs, const AABB& rhs)
    {
    // ...
    }
    This function should be within the same namespace as...
  9. Replies
    10
    Views
    513

    Re: Implementig a hot-reload system

    Note that this has also been posted elsewhere.
  10. Re: Using boost::shared_ptr in a std::set comparator?

    Where's the std::set?
  11. Re: Is memory allocated to a variable name or an address?

    That would be true even if A and B were of type int: after assignment, both A and B have the same value. It so happens that the value of a pointer is an address.

    Did you compile and run the...
  12. Re: Is memory allocated to a variable name or an address?

    It might be instructive to compile and run a program like this to test your ideas:

    #include <iostream>

    int main()
    {
    using std::cout;
    using std::endl;

    // For simplicity, assume...
  13. Re: How to return the integer value of a string?

    Did it provide any examples as to the input and corresponding output?
  14. Re: does a function know how much memory its parameters occupy?

    No, the lack of an obvious error like a crash does not mean that *X is okay. If the array had fewer than 99 elements, *X would have resulted in undefined behaviour.


    I already told you: pass the...
  15. Re: does a function know how much memory its parameters occupy?

    Yes, at least insofar as a construct like a function can "know" something.


    You can use the sizeof operator to determine the sizes of the various parameters.


    It is OK as long as the previous...
  16. Re: Compiler Error C2512: 'Coordinater' : no appropriate default constructor availabl

    It looks fine to me. What is the exact error message and the member variables of Coordinater? Maybe you are misreading the error message, e.g., it is complaining about the lack of an appropriate...
  17. Replies
    7
    Views
    662

    Re: stl map with two keys

    Scott Meyers' "STL book" (i.e., "Effective STL") is aimed at C++ programmers who already have some background in the portion of the standard library derived from the Standard Template Library, but...
  18. Re: What is the common technique of using pointers to change some value on the fly?

    The first problem is that you're printing a pointer, not an A or B object. Furthermore, the object that a points to is of class A, not B, so you cannot just cast from A* to B* (whereas casting from...
  19. Replies
    21
    Views
    2,168

    Re: Dear Expert Help me out

    If you're trying to create your own scheme for license keys (or whatever it is), then perhaps you should be searching the existing literature and reading freely available code that already does...
  20. Re: How to make a std::map return null when there is nothing "at" a certain position?

    Yeah, that's why I suggested using find instead of operator[]. On closer inspection though, lucky6969b's default value is 0, and since value initialisation of an integer type would result in zero...
  21. Re: How to make a std::map return null when there is nothing "at" a certain position?

    Make use of the find member function instead of operator[]. This way, when find returns an iterator equal to unitColors.end(), you know that you should use your default value instead.
  22. Replies
    21
    Views
    2,168

    Re: Dear Expert Help me out

    Refer to the Acceptable Use Policy:



    Are you trying to create your own license key (or some challenge response, whatever) system?
  23. Re: error: expected constructor, destructor, or type conversion before (

    This has been answered elsewhere. Next time, I suggest that you post on a single help channel at a time, and if and when you move to a different help channel, inform.
  24. Replies
    21
    Views
    2,168

    Re: Dear Expert Help me out

    Sorry, but this is probably against the forum rules/acceptable use policy, so even if we had enough information to help you, it would not be wise to do so.
  25. [RESOLVED] Broken link for Acceptable Use Policy

    In the list of topics, e.g., for this Feedback forum, there is a special announcement thread titled "Before you post...." that links to an AUP under the "Inappropriate Posts" paragraph....
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




HTML5 Development Center