Error while compile with threads included in code

Hi, I’ve been using the PGI tools for a short time just to get C++ code to run quicker than normally. I have been trying myself to optimise my code manually using std::threads, it compiles normally on my Win machine and G++ on linux however when trying to run with pgc++ -std=c++11 I get the following error on std::thread.

Any hints/help will be very much appreciated

"/usr/include/c++/5/functional", line 78: error: class "std::thread" has no
          member "result_type"
      { typedef typename _Functor::result_type result_type; };
                                   ^
          detected during:
            instantiation of class "std::_Maybe_get_result_type<_Functor, void>
                      [with _Functor=std::thread]" at line 86
            instantiation of class "std::_Weak_result_type_impl<_Functor> [with
                      _Functor=std::thread]" at line 184
            instantiation of class "std::_Weak_result_type<_Functor> [with
                      _Functor=std::thread]" at line 264
            instantiation of class "std::_Reference_wrapper_base_impl<true,
                      true, _Tp> [with _Tp=std::thread]" at line 283
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with
                      _Tp=std::thread]" at line 399
            instantiation of class "std::reference_wrapper<_Tp> [with
                      _Tp=std::thread]" at line 1638 of
                      "/usr/include/c++/5/future"

"/usr/include/c++/5/functional", line 266: error: class "std::thread" has no
          member "argument_type"
        typedef typename _Tp::argument_type argument_type;
                              ^
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true,
                      true, _Tp> [with _Tp=std::thread]" at line 283
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with
                      _Tp=std::thread]" at line 399
            instantiation of class "std::reference_wrapper<_Tp> [with
                      _Tp=std::thread]" at line 1638 of
                      "/usr/include/c++/5/future"

"/usr/include/c++/5/functional", line 267: error: class "std::thread" has no
          member "first_argument_type"
        typedef typename _Tp::first_argument_type first_argument_type;
                              ^
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true,
                      true, _Tp> [with _Tp=std::thread]" at line 283
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with
                      _Tp=std::thread]" at line 399
            instantiation of class "std::reference_wrapper<_Tp> [with
                      _Tp=std::thread]" at line 1638 of
                      "/usr/include/c++/5/future"

"/usr/include/c++/5/functional", line 268: error: class "std::thread" has no
          member "second_argument_type"
        typedef typename _Tp::second_argument_type second_argument_type;
                              ^
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true,
                      true, _Tp> [with _Tp=std::thread]" at line 283
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with
                      _Tp=std::thread]" at line 399
            instantiation of class "std::reference_wrapper<_Tp> [with
                      _Tp=std::thread]" at line 1638 of
                      "/usr/include/c++/5/future"

[/code]

ibutler11612-

Please send a small example that reproduces the problem to trs@pgroup.com , along with the compile line you use, and the pgi version number:
pgc++ -V
the output of pgc++ -v would also be helpful to see the exact gnu version number.