Added default template parameter to XPathExpressionPtr

This commit is contained in:
jez_higgins 2005-08-17 10:16:25 +00:00
parent 9ae5ba9c6f
commit a95de1c349

View file

@ -11,7 +11,7 @@ namespace Arabica
namespace XPath namespace XPath
{ {
template<class string_type, class string_adaptor = Arabica::default_string_adaptor<string_type> > template<class string_type, class string_adaptor>
class XPathExpression class XPathExpression
{ {
protected: protected:
@ -40,12 +40,12 @@ private:
XPathExpression& operator=(const XPathExpression&); XPathExpression& operator=(const XPathExpression&);
}; // class XPathExpression }; // class XPathExpression
template<class string_type, class string_adaptor> template<class string_type, class string_adaptor = Arabica::default_string_adaptor<string_type> >
class XPathExpressionPtr : public boost::shared_ptr<XPathExpression<string_type, string_adaptor> > class XPathExpressionPtr : public boost::shared_ptr<XPathExpression<string_type, string_adaptor> >
{ {
public: public:
explicit XPathExpressionPtr(XPathExpression<string_type, string_adaptor>* xp) : explicit XPathExpressionPtr(XPathExpression<string_type, string_adaptor>* xp) :
boost::shared_ptr<XPathExpression<string_type,string_adaptor> >(xp) boost::shared_ptr<XPathExpression<string_type, string_adaptor> >(xp)
{ {
} // XPathExpressionPtr } // XPathExpressionPtr
}; // class XPathExpressionPtr }; // class XPathExpressionPtr