Boost logo

Boost Users :

Subject: [Boost-users] 2d array arg, f( int m, int n, int a[m][n] ) with multi_arrays ?
From: Denis-B (denis-bz-py_at_[hidden])
Date: 2009-08-10 12:25:17


Folks,
   how can I do the following with multi_arrays please ?

    void f( int m, int n, int a[m][n] ) // legal C99 ? dunno -- would be
nice
    {
        ... a[j][k] = ...
    }
    ...
    int *a; // m*n ints, e.g. an image
    f( m, n, a );

thanks, cheers
  -- denis

-- 
View this message in context: http://www.nabble.com/2d-array-arg%2C-f%28-int-m%2C-int-n%2C-int-a-m--n--%29-with-multi_arrays---tp24902846p24902846.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net