ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] [1.31 RC] optional and BCB 6.4
by Pavel Vozenilek other posts by this author
Jan 14 2004 11:14AM messages near this date
[boost] Re: Boost.Thread : Memory leakage with thread local storage? | [boost] Re: [1.31 RC] more of optional and BCB 6.4
BCB 6.4:

char text[260];
boost::optional<AnsiString> (text);

fails with error message:

[C++ Error] optional.hpp(419): E2285 Could not find a match for
'optional_detail::optional_base<AnsiString> ::optional_base(const char
*,const char *)'
  Full parser context
    optional.hpp(419): decision to instantiate:
optional<AnsiString> ::optional(char ( &) const[260])
    --- Resetting parser context for instantiation...
    shell_extension_folder_browser.cpp(3): #include C:\G\src\common.h
    common.h(60): #include C:\boost\boost_1_31_0_rc1\boost/optional.hpp
    optional.hpp(78): namespace boost
    optional.hpp(363): class optional<T> 
    optional.hpp(419): parsing:  optional<AnsiString> ::optional(char ( &)
const[260])


It worked in 1.30.2.

Using:
   boost::optional<AnsiString> (AnsiString(text));
fixes it but maybe it should work off the shelf.

/Pavel



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Pavel Vozenilek
Pavel Vozenilek
Fernando Cacciola
Fernando Cacciola

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved