mickem/nscp — pull request #30 by historicbruno (2014-09-05 15:12:20+00:00)
Title: VS 2010 Build Fixes

I wanted to build NSClient++ with VS 2010, but this wasn't supported by the build scripts (only 2005 or 2012 it seems). With these changes I was able to build the dependencies.

The problems with `include/charEx.h` are maybe not specific to VS 2010, but I think it's a very clear change given the `typedef` of `token`. Here are the errors:
```
4>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'wchar_t *'
4> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
4> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base(_Other1,_Other2 &&)' being compiled
4> with
4> [
4> _Ty1=std::wstring,
4> _Ty2=wchar_t *,
4> _Ty=int,
4> _Other1=wchar_t *&,
4> _Other2=int
4> ]
4> C:\Users\Ben\Documents\Code\nscp\include\charEx.h(102) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair(_Other1,_Other2 &&)' being compiled
4> with
4> [
4> _Ty1=std::wstring,
4> _Ty2=wchar_t *,
4> _Other1=wchar_t *&,
4> _Other2=int
4> ]
4>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
4> with
4> [
4> _Ty1=std::wstring,
4> _Ty2=wchar_t *
4> ]
4> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
4> with
4> [
4> _Ty1=std::wstring,
4> _Ty2=wchar_t *
4> ]
```