Hi,

trying to compile mpd with gcc (trunk) or clang (trunk) fails, because
DecoderThread.cxx is missing a "#include <functional>":

src/DecoderThread.cxx: In function ‘bool decoder_run_stream_locked(Decoder&, 
InputStream&, const char*, bool&)’:
src/DecoderThread.cxx:214:23: error: ‘placeholders’ is not a namespace-name
  using namespace std::placeholders;
                       ^
src/DecoderThread.cxx:214:35: error: expected namespace-name before ‘;’ token
  using namespace std::placeholders;
                                   ^
src/DecoderThread.cxx:215:17: error: ‘bind’ is not a member of ‘std’
  const auto f = std::bind(decoder_run_stream_plugin,
                 ^
src/DecoderThread.cxx:216:6: error: ‘ref’ is not a member of ‘std’
      std::ref(decoder), std::ref(is), suffix,
      ^
src/DecoderThread.cxx:216:25: error: ‘ref’ is not a member of ‘std’
      std::ref(decoder), std::ref(is), suffix,
                         ^
src/DecoderThread.cxx:217:6: error: ‘_1’ was not declared in this scope
      _1, std::ref(tried_r));
      ^
src/DecoderThread.cxx:217:10: error: ‘ref’ is not a member of ‘std’
      _1, std::ref(tried_r));
          ^
src/DecoderThread.cxx:219:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^

-- 
Markus

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to