title: C26444 Avoid unnamed objects with custom construction and destruction (es.84)
body: <p>Can anyone help me solve the problem?? Before when I had only one method for class, which was void <em>show(vector &amp;list, string &amp;filter)</em>, get&amp;display functions were in it, then i decided to split those functions into <em>vector get() &amp; void display()</em> but when i return a new modified vector from <em>vector get()</em>  the error appears:</p>
  
  <p>C26444  Avoid unnamed objects with custom construction and destruction (es.84). </p>
  
  <p>Here's a short code example for realization:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  class Test
  {
  //variables
  };
  
  class Base
  {
  public:
      virtual vector&lt;Test&gt;get(vector&lt;Test&gt;&amp; list, string&amp; filter) = 0;
      virtual void display() = 0;
  };
  class A : public Base
  {
      string a;
      string b;
      vector&lt;Test&gt; aList;
  
  public:
      vector&lt;Test&gt;get(vector&lt;Test&gt;&amp; list, string&amp; filter)
      {
          //modifying info and placing to vector&lt;Test&gt; aList
          return aList;
      }
      void display()
      {
          //show aList
      }
  };
  
  int main()
  {
      vector&lt;Test&gt; list;
      //define list
      string filter;
      //define filter
  
      Base* object = new A();
      object-&gt;get(list, filter);
      object-&gt;display();
      return 0;
  }
  </code></pre>