Braddock Gaskill | 1 Aug 01:22

shared_ptr, pimpl, reference semantics, and const correctness

I am continuing work on a futures library for boost.  future objects (as
currently considered by the C++ standards committee, in particular Peter
Dimov's proposal) have reference semantics, like many pimpl types.

I have some burning questions about const correctness.

Hypothetical reference-semantic example:

future f1;
future f2 = f1; //f2 refers to the same underlying object as f1
f2.set(42); //do something
assert(f1.get() == 42); // see, same underlying object

This is roughly equivalent to:
boost::shared_ptr<future_impl> f1;
boost::shared_ptr<future_impl> f2 = f1;

A std::vector<T>::iterator is an example of another type with reference
semantics.

So, say I have a simple future class:

class future_impl {
  public:
    bool get() const {return value_;}
    void set(bool value) {value_ = value;}
  private:
    bool value_;
};

(Continue reading)

Beman Dawes | 1 Aug 04:59
Picon
Favicon
Gravatar

Re: [Important] Boost Subversion repository is now online

Douglas Gregor wrote:
> Hello all,
> 
> The Boost Subversion repository is now back online. All of the files  
> in CVS (including their histories) have been imported into the  
> Subversion repository.

After an apparently successful checkout, diff from log isn't working.

Edit a file. Say trunk/configure.
Using TortoiseSVN, select it. Right click to get context menu. Select 
diff. Works fine.

Using TortoiseSVN, select it again if needed. Right click to get context 
menu. Select show log. Works fine. Select one of the log messages. Right 
click for context menu. Select Compare with working copy.

This results in an error dialog: PROPFIND request failed on 
'/svn/boost/svn/bc/36681/trunk/boost/configure' ... 207 Multi-Status 
(https://svn.boost.org)

--Beman
Robert Ramey | 1 Aug 05:48

Re: [Important] Boost Subversion repository is now online

Douglas Gregor wrote:
> Hello all,
> Or for developer read/write access at:
>
> https://svn.boost.org/svn/boost/trunk/
>

> Please report any problems to me to the main Boost list, and we will
> try to resolve them as quickly as possible.
>

I've followed the instructions for doing a checkout from the developer's 
url.

After about 5 MB or so I get a message like" <filename> Access is denied.

I've addressed this by doing a cleanup and then an update 'til it stumbles 
again.

I'm using windows/xp and have had SVN installed for a couple of weeks
to use on my own projects and get my self warmed up for todays "Big Day"
so I feel pretty confident about my local SVN, Tortoise SVN client etc.

Anyone have any suggestion here?

Robert Ramey
Jonathan Franklin | 1 Aug 05:54
Picon

Re: [Important] Boost Subversion repository is now online

On 7/31/07, Robert Ramey <ramey <at> rrsd.com> wrote:

After about 5 MB or so I get a message like" <filename> Access is denied.
...
Anyone have any suggestion here?

I have had similar problems in the past, which IIRC were caused by Norton auto-protect or some other virus protection software that was being run on each file that svn created.

Jon
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Caleb Epstein | 1 Aug 06:18
Picon
Gravatar

Re: [Important] Boost Subversion repository is now online

On 7/31/07, Douglas Gregor <doug.gregor <at> gmail.com> wrote:

> The main Boost development branch is available via anonymous, read-
> only checkout at:
>
>         http://svn.boost.org/svn/boost/trunk/

Thank you, and everyone else involved in this long-overdue move!

--

-- 
Caleb Epstein
Damien Hocking | 1 Aug 07:00

Re: [Important] Boost Subversion repository is now online

I just tried it with RapidSVN on XP64.  It took about 20 minutes to get 
everything.

D

Jonathan Franklin wrote:
> On 7/31/07, *Robert Ramey* <ramey <at> rrsd.com <mailto:ramey <at> rrsd.com>> wrote:
> 
>     After about 5 MB or so I get a message like" <filename> Access is
>     denied.
>     ...
>     Anyone have any suggestion here?
> 
> 
> I have had similar problems in the past, which IIRC were caused by 
> Norton auto-protect or some other virus protection software that was 
> being run on each file that svn created.
> 
> Jon
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Boost-users mailing list
> Boost-users <at> lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Maik Beckmann | 1 Aug 09:00
Picon
Picon

Re: [Important] Boost Subversion repository is now online

Am Mittwoch, 1. August 2007 00:36:43 schrieb Douglas Gregor:
> Hello all,

>
> The main Boost development branch is available via anonymous, read-
> only checkout at:
>
> 	http://svn.boost.org/svn/boost/trunk/
>

Hello,

I just want to mention that the subversion backend 
    SVNkit 
of the subversion plugin for eclipse called 
    subclipse (http://subclipse.tigris.org/)
is unhappy about the trunk directory you created. It says
<svn console>
svn: PROPFIND request failed on '/svn/boost/!svn/bc/38332/trunk'
svn: Processing PROPFIND request response failed: Attribute     
name "svn:mime-type" associated with an element type "C:" must be followed by 
the ' = ' character. (/svn/boost/!svn/bc/38332/trunk)
</svn console>
if I try to look into trunk.

I use this subversion in conjunction with subclipse for my own little project 
and for a bunch of other libs (the boost sandbox, spirit, ... ) and its the 
first time this error message is shown.

I found this at gmane
    http://thread.gmane.org/gmane.comp.ipod.gtkpod/2443
where the following is said
<quote>I believe this is svn handling badly the incorrect property names that 
were created in the CVS to SVN conversion</quote>

For those who are using subclipse, changing the backend to JavaHL is an 
alternative, since JavaHL doesn't care about the problem in the repository. 
JavaHL is a binding to the C implementation of subversion  (SVNkit is 100% 
Java). 

Regards, 
Maik Beckmann
Pavol Droba | 1 Aug 09:27
Picon

Re: boost 1.34.1 string algorithm.

Hi,

chun ping wang wrote:
> I was wondering is it really necessary to use string algorithms to find in
> 

I think, that meaning of the term 'necessary' is quite varying. There is
nothing that forces you to use Boost.StringAlgo if you don't need it.

> variable str2 the last occurence that does not contain a number between
> 1 and 9 and create a substr base on that.
> regulary i would use std::string strNew =
> str2.substr(str2.find_last_not_of("123456789"));
> 
> So 2 questions.
> 
> 1.) Whats the benefit of the string algorithm version of boost in this case.

Probably none. If your solution suits you well, there is no reason to
use an additional library.

> 2.) How would I do this using string algorithm instead.
> 

Since there is no direct find_last_not_of equivalent in the library, the
solution will be probably more complicated than yours.

Here is one solution, that popped in my mind:

using namespace boost;
using namespace std;

iterator_range<string::reverse_iterator> res=
      find_token(
        make_range(str2.rbegin(), str2.rend()),
          !is_digit());

string str_res(res.end().base(), res.begin().base());

(this might not work, I have not tested it).

Best Regards,
Pavol.
Douglas Gregor | 1 Aug 13:57
Picon
Gravatar

Re: [Important] Boost Subversion repository is now online

On Aug 1, 2007, at 3:00 AM, Maik Beckmann wrote:
> I found this at gmane
>     http://thread.gmane.org/gmane.comp.ipod.gtkpod/2443
> where the following is said
> <quote>I believe this is svn handling badly the incorrect property  
> names that
> were created in the CVS to SVN conversion</quote>

Thank you for pointing this out. I had not heard of this problem  
before, but we were, in fact, also hit by this bug in the CVS to SVN  
conversion. It has manifested itself as incorrect properties such as  
" svn:mime-type" (note the extra space) on most of the files in the  
repository, which in turn is causing problems with some Subversion  
clients, as you witnessed.

I'll send out a note to the lists once I decide how best to handle  
this problem.

	- Doug
David Abrahams | 1 Aug 15:47
Picon
Picon
Favicon
Gravatar

Re: [Important] Boost Subversion repository is now online


on Tue Jul 31 2007, Beman Dawes <bdawes-AT-acm.org> wrote:

> Douglas Gregor wrote:
>> Hello all,
>> 
>> The Boost Subversion repository is now back online. All of the files  
>> in CVS (including their histories) have been imported into the  
>> Subversion repository.
>
> After an apparently successful checkout, diff from log isn't working.
>
> Edit a file. Say trunk/configure.
> Using TortoiseSVN, select it. Right click to get context menu. Select 
> diff. Works fine.
>
> Using TortoiseSVN, select it again if needed. Right click to get context 
> menu. Select show log. Works fine. Select one of the log messages. Right 
> click for context menu. Select Compare with working copy.
>
> This results in an error dialog: PROPFIND request failed on 
> '/svn/boost/svn/bc/36681/trunk/boost/configure' ... 207 Multi-Status 
> (https://svn.boost.org)

Beman,

Can you reproduce your problem using the canonical command-line tool?
I doubt the repo maintainers are set up to test with tortoise.

--

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com

Gmane