Skip to content

Commit

Permalink
Change a noncopyable to member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zao committed Jul 3, 2013
1 parent 6f9aea1 commit 45cbb84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace pack
ISzAlloc mem_fns;
};

struct encoder : boost::noncopyable, allocs
struct encoder : allocs
{
encoder()
{
Expand All @@ -177,9 +177,13 @@ namespace pack

CLzma2EncHandle p;
CLzma2EncProps props2;

private:
encoder(encoder const&);
encoder& operator = (encoder const&);
};

struct decoder : boost::noncopyable, allocs
struct decoder : allocs
{
decoder(Byte prop)
{
Expand All @@ -195,6 +199,10 @@ namespace pack
}

CLzma2Dec dec;

private:
decoder(decoder const&);
decoder& operator = (decoder const&);
};
}

Expand Down

0 comments on commit 45cbb84

Please sign in to comment.