hello i am using this code to replace the while space but it never replaces all the white space can u please tell me where i am wrong
#include <iostream>
#include <string>
#include <boost/regex.hpp>
#include<boost/algorithm/string.hpp>
#include<boost/algorithm/string/replace.hpp>
using namespace std;
int main(void)
{
string s4="Hai ad asdasd asdasd";
cout << boost::algorithm::replace_all_copy(s4, " ", " ");
}