|
Boost-Commit : |
From: lists.drrngrvy_at_[hidden]
Date: 2008-03-21 14:31:07
Author: drrngrvy
Date: 2008-03-21 14:31:06 EDT (Fri, 21 Mar 2008)
New Revision: 43764
URL: http://svn.boost.org/trac/boost/changeset/43764
Log:
Move header class into namespace ::cgi::common (other changes backed out)
Text files modified:
sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/header.hpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/header.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/header.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/header.hpp 2008-03-21 14:31:06 EDT (Fri, 21 Mar 2008)
@@ -10,8 +10,10 @@
#define CGI_HEADER_HPP_INCLUDED__
#include <string>
+#include <boost/lexical_cast.hpp>
namespace cgi {
+ namespace common {
//template<typename StringT = std::string>
struct header
@@ -56,6 +58,7 @@
}
string_type content;
+
};
/*
@@ -76,14 +79,14 @@
//{ Some shortcuts, to cut down on typing errors.
template<typename StringT>
header
- content_type(StringT& str)
+ content_type(StringT str)
{
return header("Content-type", str);
}
template<typename StringT>
header
- content_encoding(StringT& str)
+ content_encoding(const StringT& str)
{
return header("Content-encoding", str);
}
@@ -125,6 +128,7 @@
//typedef basic_header<std::string> header;
//typedef basic_header<std::wstring> wheader;
+ } // namespace common
} // namespace cgi
#endif // CGI_HEADER_HPP_INCLUDED__
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk