Sha256: 6644eeb964d6f7db685af974e3e9e55bd4da9fe32525658b2957a89472de6469

Contents?: true

Size: 1.64 KB

Versions: 60

Compression:

Stored size: 1.64 KB

Contents

/*
 *
 * Copyright (c) 2004
 * John Maddock
 *
 * Use, modification and distribution are subject to the 
 * Boost Software License, Version 1.0. (See accompanying file 
 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 *
 */

 /*
  *   LOCATION:    see http://www.boost.org for most recent version.
  *   FILE         basic_regex_creator.cpp
  *   VERSION      see <boost/version.hpp>
  *   DESCRIPTION: Declares template class basic_regex_creator which fills in
  *                the data members of a regex_data object.
  */

#ifndef BOOST_REGEX_V4_PROTECTED_CALL_HPP
#define BOOST_REGEX_V4_PROTECTED_CALL_HPP

#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable: 4103)
#endif
#ifdef BOOST_HAS_ABI_HEADERS
#  include BOOST_ABI_PREFIX
#endif
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif

namespace boost{
namespace re_detail{

class BOOST_REGEX_DECL abstract_protected_call
{
public:
   bool BOOST_REGEX_CALL execute()const;
   // this stops gcc-4 from complaining:
   virtual ~abstract_protected_call(){}
private:
   virtual bool call()const = 0;
};

template <class T>
class concrete_protected_call
   : public abstract_protected_call
{
public:
   typedef bool (T::*proc_type)();
   concrete_protected_call(T* o, proc_type p)
      : obj(o), proc(p) {}
private:
   virtual bool call()const;
   T* obj;
   proc_type proc;
};

template <class T>
bool concrete_protected_call<T>::call()const
{
   return (obj->*proc)();
}

}
} // namespace boost

#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable: 4103)
#endif
#ifdef BOOST_HAS_ABI_HEADERS
#  include BOOST_ABI_SUFFIX
#endif
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif

#endif

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-4.0.60 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp
passenger-5.0.18 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.17 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.16 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.15 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.14 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.13 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.11 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.10 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.9 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.8 ext/boost/regex/v4/protected_call.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//regex/v4/protected_call.hpp
passenger-5.0.7 ext/boost/regex/v4/protected_call.hpp
passenger-5.0.6 ext/boost/regex/v4/protected_call.hpp