Skip to content

Commit

Permalink
Merge pull request #481 from superfunc/boostCleanupNonCopyAr
Browse files Browse the repository at this point in the history
[Ar] Replace boost noncopyable.

(Internal change: 1891914)
  • Loading branch information
pixar-oss committed Sep 10, 2018
2 parents 423e66b + 49b5264 commit 31020a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pxr/usd/lib/ar/resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "pxr/pxr.h"
#include "pxr/usd/ar/api.h"
#include <boost/noncopyable.hpp>
#include <memory>
#include <string>
#include <vector>
Expand All @@ -52,12 +51,15 @@ class VtValue;
/// Clients may use #ArGetResolver to access the configured asset resolver.
///
class ArResolver
: public boost::noncopyable
{
public:
AR_API
virtual ~ArResolver();

// Disallow copies
ArResolver(const ArResolver&) = delete;
ArResolver& operator=(const ArResolver&) = delete;

// --------------------------------------------------------------------- //
/// \anchor ArResolver_resolution
/// \name Path Resolution Operations
Expand Down
7 changes: 5 additions & 2 deletions pxr/usd/lib/ar/resolverScopedCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "pxr/pxr.h"
#include "pxr/usd/ar/api.h"
#include "pxr/base/vt/value.h"
#include <boost/noncopyable.hpp>

PXR_NAMESPACE_OPEN_SCOPE

Expand All @@ -45,9 +44,13 @@ PXR_NAMESPACE_OPEN_SCOPE
///
/// \see \ref ArResolver_scopedCache "Scoped Resolution Cache"
class ArResolverScopedCache
: public boost::noncopyable
{
public:

// Disallow copies
ArResolverScopedCache(const ArResolverScopedCache&) = delete;
ArResolverScopedCache& operator=(const ArResolverScopedCache&) = delete;

/// Begin an asset resolver cache scope.
///
/// Calls ArResolver::BeginCacheScope on the configured asset resolver
Expand Down

0 comments on commit 31020a3

Please sign in to comment.