[computer-go] C++ parameter passing

Peter Drake drake at lclark.edu
Wed Aug 9 13:45:57 PDT 2006


I'd like to pass a large array by constant reference. I tried this:

void remove_from_zobrist_hash(BoardState & state, color_t color,  
const uint64_t & zobrist_numbers[][])

The offending parameter is zobrist_numbers. The compiler says:

../BitBoard.h:158: error: declaration of 'zobrist_numbers' as array  
of references

Is there another way to do this?

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://computer-go.org/pipermail/computer-go/attachments/20060809/9bdb2fa8/attachment.htm


More information about the computer-go mailing list