binned out typedefs for boost::shared_ptr

This commit is contained in:
jez_higgins 2005-08-16 12:10:56 +00:00
parent f423162049
commit 6308542751
3 changed files with 15 additions and 3 deletions

View file

@ -25,7 +25,11 @@ public:
const std::vector<XPathExpressionPtr>& argExprs) const = 0;
}; // class FunctionResolver
typedef boost::shared_ptr<FunctionResolver> FunctionResolverPtr;
class FunctionResolverPtr : public boost::shared_ptr<FunctionResolver>
{
public:
explicit FunctionResolverPtr(FunctionResolver* fr) : boost::shared_ptr<FunctionResolver>(fr) { }
};
class NullFunctionResolver : public FunctionResolver
{

View file

@ -33,7 +33,11 @@ class NamespaceContext
bool operator==(const NamespaceContext&) const;
}; // class NamespaceContext
typedef boost::shared_ptr<NamespaceContext> NamespaceContextPtr;
class NamespaceContextPtr : public boost::shared_ptr<NamespaceContext>
{
public:
explicit NamespaceContextPtr(NamespaceContext* nc) : boost::shared_ptr<NamespaceContext>(nc) { }
}; // class NamespaceContextPtr
class NullNamespaceContext : public NamespaceContext
{

View file

@ -23,7 +23,11 @@ public:
virtual XPathValuePtr resolveVariable(const std::string& name) const = 0;
}; // class VariableResolver
typedef boost::shared_ptr<VariableResolver> VariableResolverPtr;
class VariableResolverPtr : public boost::shared_ptr<VariableResolver>
{
public:
explicit VariableResolverPtr(VariableResolver* vr) : boost::shared_ptr<VariableResolver>(vr) { }
}; // class VariableResolverPtr
class NullVariableResolver : public VariableResolver
{