Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C++ standard question

Author: Marek Kolacz

Date: 00:25:06 08/30/05

Go up one level in this thread


Hello!

Try this:

data_t get_data(int i){
  return *const_cast<data_t*>(&globalpointer->bigstruct.datalist[i]);
}

This solution is far from being elegant, but it seems to work with no additional
overhead (at least for single thread programs).

Regards,
--
Marek Kolacz



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.