<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>51122</bug_id>
          
          <creation_ts>2010-12-15 11:42:49 -0800</creation_ts>
          <short_desc>Assigning 0 to a RefPtr&lt;&gt; confuses Visual Studio 2010</short_desc>
          <delta_ts>2010-12-15 18:53:05 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>51116</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jean-Luc Brouillet">jeanluc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>darin</cc>
    
    <cc>joepeck</cc>
    
    <cc>mjs</cc>
    
    <cc>sfalken</cc>
    
    <cc>sroussey</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>322720</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Luc Brouillet">jeanluc</who>
    <bug_when>2010-12-15 11:42:49 -0800</bug_when>
    <thetext>When faced with:
       RefPtr&lt;Node&gt; node;
       node = 0;
the VS2010 compiler can&apos;t tell whether to cast the integral 0 to nullptr_t or to T*, e.g. to use either
       RefPtr&amp; operator=(T*);
       RefPtr&amp; operator=(std::nullptr_t) { clear(); return *this; }

If we intend WebKit to track C++ 0x, changing the assignments to use nullptr would be forward thinking.    If not,  #ifdef out &quot;operator=(std::nullptr_t)&quot; might be a solution, but I have not looked closely at the code to see the implications.

Note that VS2010 does not currently support __has_feature().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323007</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-12-15 18:53:05 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 51116 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>