home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 33,217 of 33,346   
   monamimani@googlemail.com to All   
   This doesn't compile is it a bug or a mi   
   29 Sep 13 02:01:17   
   
   I get errors when compiling this simple code using top of tree clang   
   (28-Sept-2013) and if I remove the noexcept I don't get the error:   
      
   #include   
   #include   
   class Foo   
   {   
   public:   
      
   protected:   
       Foo(Foo&&) noexcept = default;   
       Foo& operator=(Foo&&) noexcept = default;   
      
       Foo()   
       {   
       }   
      
   private:   
      
       std::vector vectorFoo_;   
   };   
      
   This is the errors I get, I understand it is in the instantiation of   
   the exception specification, but I doubt the std::string is not   
   nothrow move constructible,.. the first error make me think there is a   
   bug.   
      
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   /usr/local/bin/../lib/c++/v1/vector:575:67: error: no member named   
   'value' in 'std::__1::is_nothrow_move_constructible, std::__1::allocator   
   > > >' NOEXCEPT(is_nothrow_move_constructible::value);   
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:264:   
   /usr/local/bin/../lib/c++/v1/__config:325:34: note: expanded from macro   
   'NOEXCEPT' define NOEXCEPT(x) noexcept(x) ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   /Users/Mani/Development/Project   
     s/flowOfLife/Graphics/Graphics/TestCompileError.h:29:29: note: in   
   instantiation of exception specification for 'vector' requested here   
   std::vector vectorFoo_; ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:265: In file   
   included from /usr/local/bin/../lib/c++/v1/__bit_reference:15: In file   
   included from /usr/local/bin/../lib/c++/v1/algorithm:624:   
   /usr/local/bin/../lib/c++/v1/type_traits:2676:53: note: in instantiation   
   of template class 'std::__1::add_rvalue_reference, std::__1::allocator >   
   > >' requested here : public is_nothrow_constructible<_Tp, typename   
   add_rvalue_reference::type> ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from /Users/Mani/Development/Projects/flo   
     wOfLife/Graphics/Graphics/TestCompileError.h:4:   
   /usr/local/bin/../lib/c++/v1/vector:575:20: note: in instantiation of   
   template class 'std::_1::is_nothrow_move_constructible,   
   std::__1::allocator > > >' requested here   
   NOEXCEPT(is_nothrow_move_constructible::value); ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:264:   
   /usr/local/bin/../lib/c++/v1/__config:325:34: note: expanded from macro   
   'NOEXCEPT' define NOEXCEPT(x) noexcept(x) ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:29:29:   
   note: in instantiation of exception specification for 'vector' requested   
   here std::vector vectorFoo_; ^ In file included from /Users/M   
      
   ani/Development/Projects/flowOfLife/Graphics/Graphics/TestCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   /usr/local/bin/../lib/c++/v1/vector:582:58: error: no member named   
   'value' in 'std::__1::is_nothrow_move_assignable, std::__1::allocator >   
   > >' is_nothrow_move_assignable::value);   
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:264:   
   /usr/local/bin/../lib/c++/v1/__config:325:34: note: expanded from macro   
   'NOEXCEPT' define NOEXCEPT(x) noexcept(x) ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/TestCompileError   
     .h:29:29: note: in instantiation of exception specification for   
   'operator=' requested here std::vector vectorFoo_; ^ In file included   
   from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:265: In file   
   included from /usr/local/bin/../lib/c++/v1/__bit_reference:15: In file   
   included from /usr/local/bin/../lib/c++/v1/algorithm:624:   
   /usr/local/bin/../lib/c++/v1/type_traits:2760:45: note: in instantiation   
   of template class 'std::__1::add_lvalue_reference, std::__1::allocator >   
   > >' requested here : public is_nothrow_assignableTp>::type, ^ In file   
   included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   /usr/local/bin/../lib/c++/v1/vector   
     :582:14: note: in instantiation of template class   
   'std::_1::is_nothrow_move_assignable, std::__1::allocator > > >'   
   requested here is_nothrow_move_assignable::value); ^ In file included   
   from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:264:   
   /usr/local/bin/../lib/c++/v1/__config:325:34: note: expanded from macro   
   'NOEXCEPT' define NOEXCEPT(x) noexcept(x) ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:29:29:   
   note: in instantiation of exception specification for 'operator='   
   requested here std::vector vectorFoo_; ^ In file included from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.cpp:1:   
   In file included   
     from   
   /Users/Mani/Development/Projects/flowOfLife/Graphics/Graphics/Te   
   tCompileError.h:4:   
   In file included from /usr/local/bin/../lib/c++/v1/vector:265: In file   
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca