[Rcpp-commits] r808 - pkg/Rcpp/src/Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Mar 1 14:48:51 CET 2010


Author: romain
Date: 2010-03-01 14:48:51 +0100 (Mon, 01 Mar 2010)
New Revision: 808

Modified:
   pkg/Rcpp/src/Rcpp/Named.h
Log:
removed the internal::NamedPlaceholderProxy class since we can just use Named instead

Modified: pkg/Rcpp/src/Rcpp/Named.h
===================================================================
--- pkg/Rcpp/src/Rcpp/Named.h	2010-03-01 13:39:46 UTC (rev 807)
+++ pkg/Rcpp/src/Rcpp/Named.h	2010-03-01 13:48:51 UTC (rev 808)
@@ -74,26 +74,12 @@
 
 namespace internal{
 	
-class NamedPlaceholderProxy{
-public:
-	NamedPlaceholderProxy( const std::string& arg) : name(arg) {}
-	~NamedPlaceholderProxy(){}
-	
-	template <typename T>
-	Named operator=( const T& object ) const {
-		return Named( name, object ) ;
-	}
-	
-private:
-	std::string name ;
-} ;
-	
 class NamedPlaceHolder {
 public:
 	NamedPlaceHolder(){}
 	~NamedPlaceHolder(){}
-	NamedPlaceholderProxy operator[]( const std::string& arg) const {
-		return NamedPlaceholderProxy( arg ) ;
+	Named operator[]( const std::string& arg) const {
+		return Named( arg ) ;
 	}
 	operator SEXP() const { return R_MissingArg ; }
 } ;



More information about the Rcpp-commits mailing list