title: Boost rename() function doesn't work
body: <p>The compiler doesn't complain while building,and my program says it worked, and creates the folder, but the file hasn't moved. What am I doing wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;boost/filesystem.hpp&gt;
  
  using namespace std;
  using namespace boost::filesystem;
  
  char c = 'c';
  
  bool move(){
  
   if ((bool) rename("C:\\fldr1" "rawr.txt", "C:\\fldr2" "rared.txt") == (true)){
      return true;
   }
   else{
      return false;
   }
  
  }
  int main(int argc, char argv[])
  {
  
      if (argv[1] = (c))
      {
          if (is_directory("C:\\fldr2")){
  
              if (move){
              cout &lt;&lt; "Done 1!" &lt;&lt; endl;
              }
          }
          else{
              cout &lt;&lt; "Dir doesn't exist!" &lt;&lt; endl;
  
              if ((bool)create_directory("C:\\fldr2") == (true)){
  
                  if (move){
                      cout &lt;&lt; "Done 2!" &lt;&lt; endl;
                  }
              }
          }
      }
      return 0;
  }
  </code></pre>
  
  <p>I'm using Windows 7, CodeBlocks 10.05, G++ 4.4.1, and Boost 1.47</p>