Search:

Type: Posts; User: mavroprovato

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,338

    OK, so does that mean that using const_cast to...

    OK, so does that mean that using const_cast to cast away the "const-ness" of the variable produces unex[pected results? If that is true then const_cast is no good for anything!
  2. Replies
    13
    Views
    2,338

    const_cast: what is it good for?

    i'm using the gcc compiler for windows and when running the following program



    #include <iostream>
    using namespace std;
    int main() {
    const int i = 100;
    int *ip = const_cast<int...
Results 1 to 2 of 2