Search:

Type: Posts; User: laserlight

Search: Search took 0.25 seconds.

  1. I do not understand what you are trying to say in...

    I do not understand what you are trying to say in the sentence quoted above, so kindly explain and elaborate.

    What I meant is that since a named conversion function forces the user of the type to...
  2. Yes, it is like declaring copy constructors and...

    Yes, it is like declaring copy constructors and copy assignment operators private in order to disable copying.


    Ah, but what if the type you are designing is intended for use (or just might be...
  3. You still have to determine what to invoke, and...

    You still have to determine what to invoke, and have to update your code if there are additions to the target type interface (for class types not under your control, at least), even if these would...
  4. I do not see what "it isn't a counter" has to do...

    I do not see what "it isn't a counter" has to do with anything. Concerning the error: I ignored that part due to the disclaimer that only C++ Coding Standards incorporates corrections, but thinking...
  5. I'd say that you are trying to provide an excuse...

    I'd say that you are trying to provide an excuse for lazy programmers to use such implicit conversions even when they are dangerous.


    I'd say that in those cases you usually actually want this...
  6. For a good example of why one should avoid...

    For a good example of why one should avoid writing such conversion functions, read GotW #19: Automatic Conversions.

    EDIT:
    Actually, I notice that cpjust linked to an online copy of a book that...
Results 1 to 6 of 6