[Boost-bugs] [Boost C++ Libraries] #13410: Build failure: function_template.hpp:159:33: error: called object type 'nullptr_t' is not a function or function pointer

Subject: [Boost-bugs] [Boost C++ Libraries] #13410: Build failure: function_template.hpp:159:33: error: called object type 'nullptr_t' is not a function or function pointer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-21 06:14:53


#13410: Build failure: function_template.hpp:159:33: error: called object type
'nullptr_t' is not a function or function pointer
------------------------------+----------------------------
 Reporter: yuri <yuri@…> | Owner: Douglas Gregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
  Version: Boost 1.66.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 RStudio-1.1.409_1 fails to build with clang on FreeBSD-12:

 {{{
 /usr/ports/devel/RStudio/work/rstudio-1.1.409/src/cpp/core/system/Process.cpp
 In file included from
 /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.1.409/src/cpp/core/system/Process.cpp:16:
 In file included from
 /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.1.409/src/cpp/core/include/core/system/Process.hpp:25:
 In file included from /usr/local/include/boost/function.hpp:70:
 In file included from
 /usr/local/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:57:
 In file included from
 /usr/local/include/boost/function/detail/function_iterate.hpp:14:
 In file included from
 /usr/local/include/boost/function/detail/maybe_include.hpp:29:
 /usr/local/include/boost/function/function_template.hpp:159:33: error:
 called object type 'nullptr_t' is not a function or function pointer
           BOOST_FUNCTION_RETURN((*f)(BOOST_FUNCTION_ARGS));
                                 ^~~~
 /usr/local/include/boost/function/function_template.hpp:81:36: note:
 expanded from macro 'BOOST_FUNCTION_RETURN'
 # define BOOST_FUNCTION_RETURN(X) X
                                    ^
 /usr/local/include/boost/function/function_template.hpp:925:53: note: in
 instantiation of member function
 'boost::detail::function::void_function_obj_invoker2<nullptr_t, void,
 bool, bool>::invoke' requested here
         { { &manager_type::manage }, &invoker_type::invoke };
                                                     ^
 /usr/local/include/boost/function/function_template.hpp:716:13: note: in
 instantiation of function template specialization 'boost::function2<void,
 bool, bool>::assign_to<nullptr_t>' requested here
       this->assign_to(f);
             ^
 /usr/local/include/boost/function/function_template.hpp:1061:5: note: in
 instantiation of function template specialization 'boost::function2<void,
 bool, bool>::function2<nullptr_t>' requested here
     base_type(f)
     ^
 /usr/local/include/boost/function/function_template.hpp:1114:5: note: in
 instantiation of function template specialization 'boost::function<void
 (bool, bool)>::function<nullptr_t>' requested here
     self_type(f).swap(*this);
     ^
 /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.1.409/src/cpp/core/system/Process.cpp:239:21:
 note: in instantiation of function template specialization
 'boost::function<void (bool, bool)>::operator=<nullptr_t>' requested here
    cb.onHasSubprocs = NULL;
                     ^
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13410>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-01-21 06:19:38 UTC