fork download
  1. #include <iostream>
  2. #include <boost/algorithm/string.hpp>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. std::string atcCallsignStr = "asdasaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa asd g ";
  8.  
  9. boost::algorithm::trim_right(atcCallsignStr);
  10.  
  11. cout << "'" << atcCallsignStr << "'";
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5476KB
stdin
Standard input is empty
stdout
'asdasaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa asd    g'