Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Functions

GtpEngine.cpp File Reference

See GtpEngine.h. More...

#include "GtpEngine.h"
#include <iomanip>
#include <cassert>
#include <cctype>
#include <fstream>
#include <boost/thread/barrier.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/xtime.hpp>

Go to the source code of this file.

Functions

template<>
std::size_t GtpCommand::Arg< std::size_t > (std::size_t i) const
 Specialization of Arg<T> for T=size_t to work around a GCC bug.

Detailed Description

See GtpEngine.h.

Definition in file GtpEngine.cpp.


Function Documentation

std::size_t GtpCommand::Arg< std::size_t > ( std::size_t  i  )  const

Specialization of Arg<T> for T=size_t to work around a GCC bug.

Workaround for bug in standard library of some GCC versions (e.g. GCC 4.4.1 on Ubuntu 9.10): negative numbers are parsed without error as size_t. The definition of this function is in GtpEngine.cpp, otherwise GCC 4.5.5 produces a link error, but there must be the function declaration in this header file, otherwise Visual Studio 2010 produces a link error.


Sun Mar 13 2011 Doxygen 1.7.1