Files
assimp/code/BoostWorkaround/boost/format.hpp
klickverbot ac8479f542 Moved private headers to code/ as discussed; removed boost::random workaround which was no longer needed; CMake cleanup part two (Boost detection, …).
Please be quick to suspect this commit if the build should break on Windows/MSVC.

(Again, sorry for the large commit, but I didnt want to flood the commit log with my git-style tiny commits.)

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@577 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2010-03-03 21:48:23 +00:00

49 lines
663 B
C++

#ifndef AI_BOOST_FORMAT_DUMMY_INCLUDED
#define AI_BOOST_FORMAT_DUMMY_INCLUDED
#ifndef BOOST_FORMAT_HPP
#include <string>
namespace boost
{
class str;
class format
{
friend class str;
public:
format (const std::string& _d)
: d(_d)
{
}
template <typename T>
const format& operator % (T in) const
{
return *this;
}
private:
std::string d;
};
class str : public std::string
{
public:
str(const format& f)
{
*((std::string* const)this) = std::string( f.d );
}
};
}
#else
# error "format.h was already included"
#endif //
#endif // !! AI_BOOST_FORMAT_DUMMY_INCLUDED