Search:

Type: Posts; User: grumpy

Search: Search took 0.06 seconds.

  1. Thread: Multi Arrays

    by grumpy
    Replies
    9
    Views
    969

    I'd be cautious of that. While it's sometimes...

    I'd be cautious of that. While it's sometimes necessary, the problem with such a cast is that it can convert ANY type of array or pointer, whether that is valid or not.

    Generally, I treat any...
  2. Thread: Multi Arrays

    by grumpy
    Replies
    9
    Views
    969

    It's an issue with const'ness. A pointer to an...

    It's an issue with const'ness. A pointer to an array of int is not convertible to a pointer to an array of const int.

    Prefix the definitions of array1 and array3 with const (before the int).
    ...
Results 1 to 2 of 2