|
Boost-Commit : |
From: chintanraoh_at_[hidden]
Date: 2008-06-05 14:23:04
Author: chintanraoh
Date: 2008-06-05 14:23:04 EDT (Thu, 05 Jun 2008)
New Revision: 46173
URL: http://svn.boost.org/trac/boost/changeset/46173
Log:
added get_element(std::size_t) //remove this.. this is unused
Text files modified:
sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/key_traits.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/key_traits.hpp
==============================================================================
--- sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/key_traits.hpp (original)
+++ sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/key_traits.hpp 2008-06-05 14:23:04 EDT (Thu, 05 Jun 2008)
@@ -52,11 +52,16 @@
max=255
};
- static std::size_t get_value(element_type e1)
+ static std::size_t get_value(const element_type &e1)
{
return static_cast<unsigned char>(e1);
}
+ static element_type get_element(const std::size_t &t)
+ {
+ return (char)t;
+ }
+
template<typename value_it>
static key_type get_key(const value_it &beg,const value_it &end)
{
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