GCC compilation errors caused be the recent update fixed

[SVN r55434]
This commit is contained in:
Pavol Droba
2009-08-06 19:52:08 +00:00
parent e439792494
commit 6c0f953c01
3 changed files with 105 additions and 104 deletions

View File

@ -24,26 +24,7 @@ namespace boost {
// find_format_copy (iterator variant) implementation -------------------------------// // find_format_copy (iterator variant) implementation -------------------------------//
template< template<
typename OutputIteratorT,
typename InputT,
typename FormatterT,
typename FindResultT >
inline OutputIteratorT find_format_copy_impl(
OutputIteratorT Output,
const InputT& Input,
FormatterT Formatter,
const FindResultT& FindResult )
{
return ::boost::algorithm::detail::find_format_copy_impl2(
Output,
Input,
Formatter,
FindResult,
Formatter(FindResult) );
}
template<
typename OutputIteratorT, typename OutputIteratorT,
typename InputT, typename InputT,
typename FormatterT, typename FormatterT,
@ -83,25 +64,29 @@ namespace boost {
return Output; return Output;
} }
// find_format_copy implementation --------------------------------------------------//
template< template<
typename InputT, typename OutputIteratorT,
typename InputT,
typename FormatterT, typename FormatterT,
typename FindResultT > typename FindResultT >
inline InputT find_format_copy_impl( inline OutputIteratorT find_format_copy_impl(
OutputIteratorT Output,
const InputT& Input, const InputT& Input,
FormatterT Formatter, FormatterT Formatter,
const FindResultT& FindResult) const FindResultT& FindResult )
{ {
return ::boost::algorithm::detail::find_format_copy_impl2( return ::boost::algorithm::detail::find_format_copy_impl2(
Output,
Input, Input,
Formatter, Formatter,
FindResult, FindResult,
Formatter(FindResult) ); Formatter(FindResult) );
} }
template<
// find_format_copy implementation --------------------------------------------------//
template<
typename InputT, typename InputT,
typename FormatterT, typename FormatterT,
typename FindResultT, typename FindResultT,
@ -138,24 +123,24 @@ namespace boost {
return Output; return Output;
} }
// replace implementation ----------------------------------------------------// template<
typename InputT,
template<
typename InputT,
typename FormatterT, typename FormatterT,
typename FindResultT > typename FindResultT >
inline void find_format_impl( inline InputT find_format_copy_impl(
InputT& Input, const InputT& Input,
FormatterT Formatter, FormatterT Formatter,
const FindResultT& FindResult) const FindResultT& FindResult)
{ {
::boost::algorithm::detail::find_format_impl2( return ::boost::algorithm::detail::find_format_copy_impl2(
Input, Input,
Formatter, Formatter,
FindResult, FindResult,
Formatter(FindResult) ); Formatter(FindResult) );
} }
// replace implementation ----------------------------------------------------//
template< template<
typename InputT, typename InputT,
typename FormatterT, typename FormatterT,
@ -186,6 +171,22 @@ namespace boost {
::boost::algorithm::detail::replace( Input, M.begin(), M.end(), M.format_result() ); ::boost::algorithm::detail::replace( Input, M.begin(), M.end(), M.format_result() );
} }
template<
typename InputT,
typename FormatterT,
typename FindResultT >
inline void find_format_impl(
InputT& Input,
FormatterT Formatter,
const FindResultT& FindResult)
{
::boost::algorithm::detail::find_format_impl2(
Input,
Formatter,
FindResult,
Formatter(FindResult) );
}
} // namespace detail } // namespace detail
} // namespace algorithm } // namespace algorithm
} // namespace boost } // namespace boost

View File

@ -24,29 +24,7 @@ namespace boost {
// find_format_all_copy (iterator variant) implementation ---------------------------// // find_format_all_copy (iterator variant) implementation ---------------------------//
template< template<
typename OutputIteratorT,
typename InputT,
typename FinderT,
typename FormatterT,
typename FindResultT >
inline OutputIteratorT find_format_all_copy_impl(
OutputIteratorT Output,
const InputT& Input,
FinderT Finder,
FormatterT Formatter,
const FindResultT& FindResult )
{
return ::boost::algorithm::detail::find_format_all_copy_impl2(
Output,
Input,
Finder,
Formatter,
FindResult,
Formatter(FindResult) );
}
template<
typename OutputIteratorT, typename OutputIteratorT,
typename InputT, typename InputT,
typename FinderT, typename FinderT,
@ -94,20 +72,21 @@ namespace boost {
return Output; return Output;
} }
// find_format_all_copy implementation ----------------------------------------------//
template< template<
typename InputT, typename OutputIteratorT,
typename InputT,
typename FinderT, typename FinderT,
typename FormatterT, typename FormatterT,
typename FindResultT > typename FindResultT >
inline InputT find_format_all_copy_impl( inline OutputIteratorT find_format_all_copy_impl(
OutputIteratorT Output,
const InputT& Input, const InputT& Input,
FinderT Finder, FinderT Finder,
FormatterT Formatter, FormatterT Formatter,
const FindResultT& FindResult) const FindResultT& FindResult )
{ {
return ::boost::algorithm::detail::find_format_all_copy_impl2( return ::boost::algorithm::detail::find_format_all_copy_impl2(
Output,
Input, Input,
Finder, Finder,
Formatter, Formatter,
@ -115,7 +94,9 @@ namespace boost {
Formatter(FindResult) ); Formatter(FindResult) );
} }
template< // find_format_all_copy implementation ----------------------------------------------//
template<
typename InputT, typename InputT,
typename FinderT, typename FinderT,
typename FormatterT, typename FormatterT,
@ -164,20 +145,18 @@ namespace boost {
return Output; return Output;
} }
// find_format_all implementation ------------------------------------------------// template<
typename InputT,
template<
typename InputT,
typename FinderT, typename FinderT,
typename FormatterT, typename FormatterT,
typename FindResultT > typename FindResultT >
inline void find_format_all_impl( inline InputT find_format_all_copy_impl(
InputT& Input, const InputT& Input,
FinderT Finder, FinderT Finder,
FormatterT Formatter, FormatterT Formatter,
FindResultT FindResult) const FindResultT& FindResult)
{ {
::boost::algorithm::detail::find_format_all_impl2( return ::boost::algorithm::detail::find_format_all_copy_impl2(
Input, Input,
Finder, Finder,
Formatter, Formatter,
@ -185,6 +164,8 @@ namespace boost {
Formatter(FindResult) ); Formatter(FindResult) );
} }
// find_format_all implementation ------------------------------------------------//
template< template<
typename InputT, typename InputT,
typename FinderT, typename FinderT,
@ -256,6 +237,25 @@ namespace boost {
} }
} }
template<
typename InputT,
typename FinderT,
typename FormatterT,
typename FindResultT >
inline void find_format_all_impl(
InputT& Input,
FinderT Finder,
FormatterT Formatter,
FindResultT FindResult)
{
::boost::algorithm::detail::find_format_all_impl2(
Input,
Finder,
Formatter,
FindResult,
Formatter(FindResult) );
}
} // namespace detail } // namespace detail
} // namespace algorithm } // namespace algorithm
} // namespace boost } // namespace boost

View File

@ -20,36 +20,6 @@ namespace boost {
// trim iterator helper -----------------------------------------------// // trim iterator helper -----------------------------------------------//
// Search for first non matching character from the beginning of the sequence
template< typename ForwardIteratorT, typename PredicateT >
inline ForwardIteratorT trim_begin(
ForwardIteratorT InBegin,
ForwardIteratorT InEnd,
PredicateT IsSpace )
{
ForwardIteratorT It=InBegin;
for(; It!=InEnd; ++It )
{
if (!IsSpace(*It))
return It;
}
return It;
}
// Search for first non matching character from the end of the sequence
template< typename ForwardIteratorT, typename PredicateT >
inline ForwardIteratorT trim_end(
ForwardIteratorT InBegin,
ForwardIteratorT InEnd,
PredicateT IsSpace )
{
typedef BOOST_STRING_TYPENAME boost::detail::
iterator_traits<ForwardIteratorT>::iterator_category category;
return ::boost::algorithm::detail::trim_end_iter_select( InBegin, InEnd, IsSpace, category() );
}
template< typename ForwardIteratorT, typename PredicateT > template< typename ForwardIteratorT, typename PredicateT >
inline ForwardIteratorT trim_end_iter_select( inline ForwardIteratorT trim_end_iter_select(
ForwardIteratorT InBegin, ForwardIteratorT InBegin,
@ -86,6 +56,36 @@ namespace boost {
return InBegin; return InBegin;
} }
// Search for first non matching character from the beginning of the sequence
template< typename ForwardIteratorT, typename PredicateT >
inline ForwardIteratorT trim_begin(
ForwardIteratorT InBegin,
ForwardIteratorT InEnd,
PredicateT IsSpace )
{
ForwardIteratorT It=InBegin;
for(; It!=InEnd; ++It )
{
if (!IsSpace(*It))
return It;
}
return It;
}
// Search for first non matching character from the end of the sequence
template< typename ForwardIteratorT, typename PredicateT >
inline ForwardIteratorT trim_end(
ForwardIteratorT InBegin,
ForwardIteratorT InEnd,
PredicateT IsSpace )
{
typedef BOOST_STRING_TYPENAME boost::detail::
iterator_traits<ForwardIteratorT>::iterator_category category;
return ::boost::algorithm::detail::trim_end_iter_select( InBegin, InEnd, IsSpace, category() );
}
} // namespace detail } // namespace detail
} // namespace algorithm } // namespace algorithm