title: Crash in C++ setter function
body: <p>I have a class that's instantiated by two different classes as below:
  I am hitting a crash in set_url() function in following code. Unable to decide why?</p>
  
  <pre><code>class UrlAction {
      String url;
      bool action;
  public:
     UrlAction() : action(false) {};
  
     void operator=(const UrlAction &amp;from);
  
     inline String get_url() {
         return url;
     }
     inline void set_url(String from_url) {
         this-&gt;url = from_url;
     }
     inline bool get_action() {
         return action;
     }
     inline void set_action(bool act) {
         this-&gt;action = act;
     }
  };
  
  class A {
  public:
      Vector&lt;UrlAction&gt;   _url_act_list;
  };
  class B {
  public:
      Vector&lt;UrlAction&gt;   _url_act_list;
  };
  foo() {
      A a;
      B b;
      Vector&lt;String&gt; temp_vect;
      temp_vect.push_back("xxxxx.com");
      temp_vect.push_back("yyyyy.com");
      temp_vect.push_back("zzzzz.com");
      temp_vect.push_back("wwwww.com");
      temp_vect.push_back("vvvvv.com");
  
      for (int i = 0; i &lt; temp_vect.size(); i++) {
          a._url_act_list[i].set_url(temp_vect[i]); //This is the line causing crash
      }
  }
  </code></pre>
  
  <p>I also have written a '=' operator overloader that assigns two objects of type UrlAction.</p>