Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions include/boost/compute/closure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ struct closure_signature_argument_inserter
BOOST_ASSERT(capture_string[0] == '(' &&
capture_string[capture_string_length-1] == ')');
std::string capture_string_(capture_string + 1, capture_string_length - 2);
boost::split(m_capture_names, capture_string_ , boost::is_any_of(","));
boost::split(m_capture_names, capture_string_ , boost::is_any_of(", "), boost::algorithm::token_compress_on);
}

template<class T>
Expand All @@ -227,9 +227,6 @@ struct closure_signature_argument_inserter
// get captured variable name
std::string variable_name = m_capture_names[n];

// remove leading and trailing whitespace from variable name
boost::trim(variable_name);

s << capture_traits<T>::type_name() << " " << variable_name;
if(n+1 < m_last){
s << ", ";
Expand Down