<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:aaronpuchert@alice-dsl.net" title="Aaron Puchert <aaronpuchert@alice-dsl.net>"> <span class="fn">Aaron Puchert</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - invalid argument type 'VMutex' to unary expression on requires_capability"
   href="https://bugs.llvm.org/show_bug.cgi?id=34951">bug 34951</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>aaronpuchert@alice-dsl.net
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - invalid argument type 'VMutex' to unary expression on requires_capability"
   href="https://bugs.llvm.org/show_bug.cgi?id=34951#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - invalid argument type 'VMutex' to unary expression on requires_capability"
   href="https://bugs.llvm.org/show_bug.cgi?id=34951">bug 34951</a>
              from <span class="vcard"><a class="email" href="mailto:aaronpuchert@alice-dsl.net" title="Aaron Puchert <aaronpuchert@alice-dsl.net>"> <span class="fn">Aaron Puchert</span></a>
</span></b>
        <pre>You need to define operator!() for VMutex, as shown in the documentation. The
expression in the attribute is parsed just like an ordinary C++ expression, so
the operator needs to be available for negative capabilities to work. The
implementation doesn't matter, you can just use

  const VMutex& operator!() const { return *this; }

as member function or

  const VMutex& operator!(const VMutex& mutex) { return mutex; }

as standalone function. I guess you can actually omit the implementation but I
didn't try if that links.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>