
This code is running in codepad http://boost.codepad.org/ybbmMUEc (available ony for 24 hrs) But when I run this at my side it gives error 1>------ Build started: Project: stringmanipulation, Configuration: Debug Win32 ------ 1>Compiling... 1>stringcases.cpp 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2275: 'std::string' : illegal use of this type as an expression 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2146: syntax error : missing ')' before identifier 'elem' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2059: syntax error : ')' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(116) : error C2143: syntax error : missing ';' before '{' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(117) : error C2065: 'elem' : undeclared identifier 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C3861: 'BOOST_FOREACH': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\FormatTesting\stringmanipulation\Debug\BuildLog.htm" 1>stringmanipulation - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== If I comment BOOST_FOREACH loop every thing runs fine. Where is the problem??? I am using VC 9.0 (Visual Studio 2008) and boost_1_36_0. If this issue is already solved in boost 1.37 then which lib I need to download from trunk. Give me url like this http://cgs.hpi.uni-potsdam.de/trac/vrs/browser/trunk/3rd-party/boost-1.36.0/... Rahul To create something exceptional ________________________________ -Master4Master "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment.." Speak out for justice and peace, even if your voice trembles. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Hello, On Wed, Dec 31, 2008 at 5:28 AM, master master <master_4_master@yahoo.com>wrote:
This code is running in codepad http://boost.codepad.org/ybbmMUEc (available ony for 24 hrs)
But when I run this at my side it gives error
1>------ Build started: Project: stringmanipulation, Configuration: Debug Win32 ------ 1>Compiling... 1>stringcases.cpp 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2275: 'std::string' : illegal use of this type as an expression 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2146: syntax error : missing ')' before identifier 'elem' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2059: syntax error : ')' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(116) : error C2143: syntax error : missing ';' before '{' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(117) : error C2065: 'elem' : undeclared identifier 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C3861: 'BOOST_FOREACH': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\FormatTesting\stringmanipulation\Debug\BuildLog.htm" 1>stringmanipulation - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If I comment BOOST_FOREACH loop every thing runs fine. Where is the problem???
You haven't included foreach.hpp. The error message often contains the most relevant information at the end of the list of errors in Visual C++. The C3861 error is often due to either a missing include, or a wrong namespace, #include <boost/foreach.hpp>
I am using VC 9.0 (Visual Studio 2008) and boost_1_36_0. If this issue is already solved in boost 1.37 then which lib I need to download from trunk. Give me url like this http://cgs.hpi.uni-potsdam.de/trac/vrs/browser/trunk/3rd-party/boost-1.36.0/...
There is nothing in Boost to fix. I hope this helps. Neil Groves
Rahul
To create something exceptional
________________________________
-Master4Master "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment.." Speak out for justice and peace, even if your voice trembles.
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Neil, I promised you more efficient iterator adaptors in an earlier post. I actually got stuck, and shelved the problem for now. At least I want to share what I learned since I started the implementation. First of all, I was wrong framing the problem in the scope of ranges, so RangeEx is probably not the place to solve it. The iterators wrapped in a range are not restricted to only iterate within the range they are extracted from. In particular, the range may be a subrange of a larger range, and its iterators can iterate within the larger range. So ranges are just a special case of storing together multiple iterators over the same container range. As we have discussed in the earlier thread, multiple iterators over the same container range may contain redundant information. For example, each tranform_iterator contains a copy of its function object. I believe this should be overcome by being able to divide/recompose an iterator into/from a private and shared part. Dave mentioned something like that already. The other redundancy, which IMO is worse because it grows exponentially with adaptor stack size, is information about the begin and end of the underlying range, which is needed by some adaptors such as filter_iterator. First of all, regarding the question whether the range begin is ever needed, it is not for filter_iterator, but it is for union_iterator (interleaving two sorted ranges), so conceptually, knowledge about begin and end may both be needed and should be treated conceptually the same. To solve the problem, an iterator could be tagged as "begin_bounded" and/or "end_bounded", similar to traversal categories now. For example, when an iterator is "end_bounded", it supports "at_end" and "distance_to_end" (if random access) functions. When a filter_iterator is layered over an end-bounded iterator, it can use these functions to avoid storing the range end itself. If it is layered on top of a non-end-bounded iterator, it must first wrap the iterator into a wrapper that conveys end-boundedness (and of course takes end in its constructor). Adaptors expose the begin_boundedness/end_boundedness of their underlying iterators if they can do so, which brings the savings in storage. I have a bit of an implementation for this last part as far as we need it for our project, but nothing to write home about, and there may well be still conceptual holes in it. Arno -- Dr. Arno Schoedl · aschoedl@think-cell.com Technical Director think-cell Software GmbH · Invalidenstr. 34 · 10115 Berlin, Germany http://www.think-cell.com · phone +49-30-666473-10 · toll-free (US) +1-800-891-8091 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl · Amtsgericht Charlottenburg, HRB 85229

Ok Thanks that worked. So silly mistake :) Rahul To create something exceptional ________________________________ -Master4Master "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment." Speak out for justice and peace, even if your voice trembles. ________________________________ From: Neil Groves <neil@grovescomputing.com> To: boost@lists.boost.org Sent: Wednesday, 31 December, 2008 4:05:18 PM Subject: Re: [boost] Novice Problem Hello, On Wed, Dec 31, 2008 at 5:28 AM, master master <master_4_master@yahoo..com>wrote:
This code is running in codepad http://boost.codepad..org/ybbmMUEc (available ony for 24 hrs)
But when I run this at my side it gives error
1>------ Build started: Project: stringmanipulation, Configuration: Debug Win32 ------ 1>Compiling... 1>stringcases.cpp 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2275: 'std::string' : illegal use of this type as an expression 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2146: syntax error : missing ')' before identifier 'elem' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2059: syntax error : ')' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(116) : error C2143: syntax error : missing ';' before '{' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(117) : error C2065: 'elem' : undeclared identifier 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C3861: 'BOOST_FOREACH': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\FormatTesting\stringmanipulation\Debug\BuildLog.htm" 1>stringmanipulation - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If I comment BOOST_FOREACH loop every thing runs fine. Where is the problem???
You haven't included foreach.hpp. The error message often contains the most relevant information at the end of the list of errors in Visual C++. The C3861 error is often due to either a missing include, or a wrong namespace, #include <boost/foreach.hpp>
I am using VC 9.0 (Visual Studio 2008) and boost_1_36_0. If this issue is already solved in boost 1.37 then which lib I need to download from trunk. Give me url like this http://cgs.hpi.uni-potsdam.de/trac/vrs/browser/trunk/3rd-party/boost-1.36.0/...
There is nothing in Boost to fix. I hope this helps. Neil Groves
Rahul
To create something exceptional
________________________________
-Master4Master "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment.." Speak out for justice and peace, even if your voice trembles.
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
participants (3)
-
Arno Schödl
-
master master
-
Neil Groves