Exceptional Server

  • + 1 comment

    This is a workaround, not a solution. The whole point of the private load member is to keep track of the number of times that Server::compute() is called. The bad_alloc exception should occur upon a failure of Server::compute. If T is large enough, conceivably the system could run out of memory even when A is less than 1073741823.