XrdClBuffer.hh uses std::move but fails to include <utility> required to define this method. This patch adds this missing include.

Fixes compilation failures such as

[ 83%] Building CXX object src/CMakeFiles/cmsd.dir/XrdCms/XrdCmsNode.cc.o
cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/build/src && /opt/local/bin/clang++-mp-8.0  -DHAVE_ATOMICS -DHAVE_CRYPT -DHAVE_CURL_MULTI_WAIT -DHAVE_DH_PADDED -DHAVE_ET_COM_ERR_H -DHAVE_FSTATAT -DHAVE_GETIFADDRS -DHAVE_LIBZ -DHAVE_NAMEINFO -DHAVE_READLINE -DHAVE_SSL -DHAVE_STRLCPY -DHAVE_TLS1 -DHAVE_TLS11 -DHAVE_TLS12 -DHAVE_XML2 -DHAVE_XRDCRYPTO -DLT_MODULE_EXT=\".dylib\" -DUSE_LIBC_SEMAPHORE=0 -DXRDPLUGIN_SOVERSION=\"4\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__macos__=1 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/.. -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/. -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/build/src -I/usr/local/include  -Os --std=c++11 -stdlib=macports-libstdc++ -std=c++0x -DOPENSSL_NO_FILENAMES -Wno-deprecated-declarations -O3 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.7   -o CMakeFiles/cmsd.dir/XrdCms/XrdCmsNode.cc.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/XrdCms/XrdCmsNode.cc
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/bindings/python/src/PyXRootDCopyProcess.cc:26:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/bindings/python/src/PyXRootDCopyProcess.hh:30:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/XrdCl/XrdClCopyProcess.hh:29:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/XrdCl/XrdClXRootDResponses.hh:22:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/XrdCl/XrdClBuffer.hh:52:21: error: no member named 'move' in namespace 'std'
        Steal( std::move( buffer ) );
               ~~~~~^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_xrootd/xrootd/work/xrootd-4.9.1/src/XrdCl/XrdClBuffer.hh:60:21: error: no member named 'move' in namespace 'std'
        Steal( std::move( buffer ) );
               ~~~~~^

You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/958

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"XrdClBuffer.hh: Add missing \u003cutility\u003e include required for std::move (#958)"}],"action":{"name":"View Pull Request","url":"https://github.com/xrootd/xrootd/pull/958"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/958", "url": "https://github.com/xrootd/xrootd/pull/958", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1