You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2018/12/26 02:41:24 UTC
svn commit: r1849729 -
/subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp
Author: brane
Date: Wed Dec 26 02:41:24 2018
New Revision: 1849729
URL: http://svn.apache.org/viewvc?rev=1849729&view=rev
Log:
* subversion/bindings/cxx/include/svnxx/noncopyable.hpp:
Fix thinko ... users can't just decide to derive SVN++ classes from
boost::noncopyable if the library was not compiled that way.
Modified:
subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp
Modified: subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp?rev=1849729&r1=1849728&r2=1849729&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp (original)
+++ subversion/trunk/subversion/bindings/cxx/include/svnxx/noncopyable.hpp Wed Dec 26 02:41:24 2018
@@ -21,25 +21,14 @@
* @endcopyright
*/
-#ifndef __cplusplus
-#error "This is a C++ header file."
-#endif
-
#ifndef SVNXX_NONCOPYABLE_HPP
#define SVNXX_NONCOPYABLE_HPP
-#if defined(SVNXX_USE_BOOST) && !defined(DOXYGEN)
-#include <boost/noncopyable.hpp>
-#endif
-
namespace apache {
namespace subversion {
namespace svnxx {
namespace detail {
-#if defined(SVNXX_USE_BOOST) && !defined(DOXYGEN)
-using boost::noncopyable;
-#else
namespace noncopyable_ {
/**
@@ -62,7 +51,6 @@ private:
} // namespace noncopyable_
using noncopyable = noncopyable_::noncopyable;
-#endif // SVNXX_USE_BOOST
} // namespace detail
} // namespace svnxx