Fix for minor MSVC error.

develop
Petr Mrázek 2011-12-24 14:34:10 +01:00
parent e9f9f9b92e
commit 51dae5a5dc
1 changed files with 2 additions and 1 deletions

@ -248,7 +248,8 @@ std::string PrintSplatterType (int16_t mat1, int32_t mat2, vector<DFHack::t_matg
} }
*/ */
template <typename CT, typename FT, typename AT = FT> //FIXME: Error 8 error C4519: default template arguments are only allowed on a class template
template <typename CT, typename FT, typename AT/* = FT*/>
CT *binsearch_in_vector(std::vector<CT*> &vec, FT CT::*field, AT value) { CT *binsearch_in_vector(std::vector<CT*> &vec, FT CT::*field, AT value) {
int min = -1, max = (int)vec.size(); int min = -1, max = (int)vec.size();
CT **p = vec.data(); CT **p = vec.data();