Compiling qtscriptgenerator with Qt5.4 and MSVC2013

Compiling qtscriptgenerator with Qt5.4 and MSVC2013

I needed to use msvc++ (2013) for compiling qtscriptgenerator. When I tried to compile the generator.pro I got the following errors.

C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xutility:289: error: C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘rpp::pp_output_iterator‘ (or there is no acceptable conversion)
z:\documents\zoa\zoa\3rdparty\qtscriptgenerator-master\generator\parser\rpp\pp-iterator.h(74): could be ‘rpp::pp_output_iterator &rpp::pp_output_iterator::operator =(const char &)’
while trying to match the argument list ‘(rpp::pp_output_iterator, rpp::pp_output_iterator)’

C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xutility:289: error: C2582: ‘operator =’ function is unavailable in ‘rpp::pp_output_iterator

What I did to get around this was to add this function to pp-iterator.h for the class pp_output_iterator:

inline pp_output_iterator &operator=(const typename pp_output_iterator<_Container>& __v)
{
      _M_result = __v._M_result;
      return *this;
}

Hope this is some help for anyone else trying to build qtscriptgenerator with msvc and QT Creator.