You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Travis Vitek (JIRA)" <ji...@apache.org> on 2008/07/02 03:42:44 UTC

[jira] Created: (STDCXX-979) __rw_is_scalar or is_scalar need to take std::nullptr_t into account

__rw_is_scalar or is_scalar need to take std::nullptr_t into account
--------------------------------------------------------------------

                 Key: STDCXX-979
                 URL: https://issues.apache.org/jira/browse/STDCXX-979
             Project: C++ Standard Library
          Issue Type: Bug
          Components: TR1.4 - Metaprogramming and Type Traits
    Affects Versions: 4.3
            Reporter: Travis Vitek
            Assignee: Travis Vitek
             Fix For: 4.3


The standard requires that {{std::is_scalar<std::nullptr_t>::value}} evaluate to true. The current implementation doesn't consider the {{std::nullptr_t}} type because it is not implemented yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-979) __rw_is_scalar or is_scalar need to take std::nullptr_t into account

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-979:
--------------------------------

    Affects Version/s:     (was: 4.3.0)
                       4.3.x
        Fix Version/s:     (was: 4.3.0)
                       4.3.x

Changed both Affects Version/s and Fix Version/s from 4.3.0 to 4.3.x since 4.3.0 hasn't been released yet. If this is fixed in 4.3.0, it doesn't make sense to file it against the same version. If not, we'll need to change Affects Version/s back to 4.3.0 and Fix Version/s to the next version after 4.3.0 that we plan to fix it in.

> __rw_is_scalar or is_scalar need to take std::nullptr_t into account
> --------------------------------------------------------------------
>
>                 Key: STDCXX-979
>                 URL: https://issues.apache.org/jira/browse/STDCXX-979
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: TR1.4 - Metaprogramming and Type Traits
>    Affects Versions: 4.3.x
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.3.x
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The standard requires that {{std::is_scalar<std::nullptr_t>::value}} evaluate to true. The current implementation doesn't consider the {{std::nullptr_t}} type because it is not implemented yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-979) __rw_is_scalar or is_scalar need to take std::nullptr_t into account

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614633#action_12614633 ] 

Martin Sebor commented on STDCXX-979:
-------------------------------------

The solution should be straightforward: add a config test for {{nullptr_t}} and conditionally implement {{is_scalar<std::nullptr_t>}} when the test detects support for the type.

> __rw_is_scalar or is_scalar need to take std::nullptr_t into account
> --------------------------------------------------------------------
>
>                 Key: STDCXX-979
>                 URL: https://issues.apache.org/jira/browse/STDCXX-979
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: TR1.4 - Metaprogramming and Type Traits
>    Affects Versions: 4.3.x
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.3.x
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The standard requires that {{std::is_scalar<std::nullptr_t>::value}} evaluate to true. The current implementation doesn't consider the {{std::nullptr_t}} type because it is not implemented yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-979) __rw_is_scalar or is_scalar need to take std::nullptr_t into account

Posted by "Travis Vitek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614742#action_12614742 ] 

Travis Vitek commented on STDCXX-979:
-------------------------------------

Should we not provide a definition of {{nullptr_t}} and {{nullptr}} for those systems that don't provide it natively?

> __rw_is_scalar or is_scalar need to take std::nullptr_t into account
> --------------------------------------------------------------------
>
>                 Key: STDCXX-979
>                 URL: https://issues.apache.org/jira/browse/STDCXX-979
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: TR1.4 - Metaprogramming and Type Traits
>    Affects Versions: 4.3.x
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.3.x
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The standard requires that {{std::is_scalar<std::nullptr_t>::value}} evaluate to true. The current implementation doesn't consider the {{std::nullptr_t}} type because it is not implemented yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-979) __rw_is_scalar or is_scalar need to take std::nullptr_t into account

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614746#action_12614746 ] 

Martin Sebor commented on STDCXX-979:
-------------------------------------

I don't think we can make it behave the way the real deal is supposed to.

> __rw_is_scalar or is_scalar need to take std::nullptr_t into account
> --------------------------------------------------------------------
>
>                 Key: STDCXX-979
>                 URL: https://issues.apache.org/jira/browse/STDCXX-979
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: TR1.4 - Metaprogramming and Type Traits
>    Affects Versions: 4.3.x
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.3.x
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The standard requires that {{std::is_scalar<std::nullptr_t>::value}} evaluate to true. The current implementation doesn't consider the {{std::nullptr_t}} type because it is not implemented yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.