Skip to content

optional no longer compiles when BOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL is defined #57

Open

Description

@akrzemi1
No description provided.

Activity

  1. akrzemi1 commented on Jul 11, 2018

    @akrzemi1
    MemberAuthor
    $ c++ -v                                                                                                        ~
    FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
    Target: x86_64-unknown-freebsd12.0
    Thread model: posix
    InstalledDir: /usr/bin
    
    $ cat a.cc
    #define BOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL
    #include <boost/optional.hpp>
    
    $ c++ -c a.cc -isystem/usr/local/include
    In file included from a.cc:2:
    In file included from /usr/local/include/boost/optional.hpp:15:
    In file included from /usr/local/include/boost/optional/optional.hpp:1462:
    /usr/local/include/boost/optional/detail/optional_reference_spec.hpp:174:40: error: no type named
          'optional_value_type' in namespace 'boost::optional_detail'
        optional<typename optional_detail::optional_value_type<typename boost::result_of<F(T&)>::type>::type> ...
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
    /usr/local/include/boost/optional/detail/optional_reference_spec.hpp:174:94: error: member 'type' declared as a
          template
        optional<typename optional_detail::optional_value_type<typename boost::result_of<F(T&)>::type>::type> ...
                                                                                                 ^
    /usr/local/include/boost/optional/detail/optional_reference_spec.hpp:174:98: error: expected ';' at end of
          declaration list
        optional<typename optional_detail::optional_value_type<typename boost::result_of<F(T&)>::type>::type> ...
                                                                                                     ^
    3 errors generated.
  2. akrzemi1 commented on Jul 11, 2018

    @akrzemi1
    MemberAuthor

    This is fixed in develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions