Boris | 1 Jun 04:23
Picon

Re: How to open a file with its associated application?

On Sun, 01 Jun 2008 00:16:46 +0900, Zdravko Monov  
<zdravko.monov <at> gmail.com> wrote:

> Hi!
> Is there a C++ library that can, given a filename, start the default
> application for its type to open it?

I'd say Boost.Process would be the library where the feature you are  
asking for would need to be added to (see  
http://www.netbsd.org/~jmmv/process/). There are a few more problems  
though:

* Boost.Process is not an official Boost library.
* Development stopped in 2006 as far as I can tell.
* The original developer can't be contacted anymore (at least I didn't  
manage to contact him).

I took the source code of version 0.1 (the only version released so far)  
and fixed a couple of bugs. The library basically works but is far from  
complete. There are various outstanding issues, and I'm not sure yet if I  
have enough time to go through all of them.

Boris
Abhinandan Jain | 1 Jun 04:46
Picon
Picon

Re: Trouble building statecharts with gcc 4.3.0

Hi 

It turns out that the problem went away after upgrading to boost 1.35. I had been
using 1.34.1.

Thanks.

Abhi

On Sat, May 31, 2008 at 11:09:44AM +0200, Andreas Huber wrote:
> Hi
> 
> > I am having trouble compiling boost statechart code using gcc 4.3.0. I 
> > tried this on the
> > +sample program on statechart site and get the same errors. The errors are 
> > of the type
> >
> >  error: value-initialization of reference
> >
> > for each process_event call in the example:
> >
> >       myWatch.process_event( EvStartStop() );
> >       myWatch.process_event( EvStartStop() );
> >       myWatch.process_event( EvStartStop() );
> 
> Not sure why this happens on your system. The currently released version is 
> the same as the one in the trunk and the trunk tests for gcc 4.3 clearly say 
> that the example compiles just fine, see the cell at the intersection of 
> "StopWatchExample" and "gcc- 4.3.0":
> 
(Continue reading)

Steven Watanabe | 1 Jun 05:00
Picon

Re: Is there any class that can promote a type to the complex type?

AMDG

Joel Falcou wrote:
> I'll take this opportunity to ask the follwoing : would be a properly 
> designed complex class be considered as a potential inclusion to boost 
> (along octonion adn quaternion) ? In everyday life, using std::complex 
> is sometimes cumbersome as some basic operations or conevrtion are lacking

What exactly is missing?  Is there any particular reason it can't be 
added as free functions?

In Christ,
Steven Watanabe
Steven Watanabe | 1 Jun 05:41
Picon

Re: [boost.function] evaluating needed arguments only

AMDG

Olaf Krzikalla wrote:
> is it possible to check a function bound to boost::function, if a 
> particular argument is actually needed?

Boost.Function doesn't provide such a utility.  I can't see a way to
get this information out of boost::bind using the public interface, either.
visit_each skips placeholders.  If there is a way you would need 
something like this

#include <boost/function.hpp>
#include <boost/bind.hpp>

struct bar {};

class tSlot {
public:
    template<class T>
    tSlot(const T& t) : uses_placeholder1(false), 
uses_placeholder2(false), f(t) {
        // do some magic to find which arguments are used.
    }
    void operator()(int arg1, bar& arg2) const { f(arg1, arg2); }
    bool uses_placeholder(int i) const {
        if(i == 1) {
            return(uses_placeholder1);
        } else if(i == 2) {
            return(uses_placeholder2);
        } else {
(Continue reading)

Richard Dingwall | 1 Jun 09:10
Picon
Gravatar

[test] Using the Unit Test Framework in Xcode 3 howto

Hi guys,

I've written a short tutorial on getting up and running with the Boost
Unit Test Framework in Xcode 3, including getting the IDE to  parse
test results. You can read it here:
http://richarddingwall.name/2008/06/01/using-the-boost-unit-test-framework-with-xcode-3/

Richard
Joel FALCOU | 1 Jun 10:25
Picon
Picon
Gravatar

Re: Is there any class that can promote a type to the complex type?

> What exactly is missing?  Is there any particular reason it can't be 
> added as free functions?

Well, basically :

- a large number of classic mathematic functions.
- a real default constructor. Initialising complex<T> to (T(0),T(0)) 
seems redundant.
- automatic conversion between complex of different base types
and overload support for complex/scalar interaction
e.g :

int main()
{
   complex<float> a(1,1);
   complex<double> b(2,2);
   complex<float> c;
   complex<int> d(2,2);

   complex<float> e(d); // Error : error: no matching function for call 	
		       // to 'complex<float>::complex(complex<int>&)'

   c = a+3.f; // works
   c = a+3;   // Error : no match for 'operator+' in 'a + 3'
   c = a+b;   // Error : no match for 'operator+' in 'a + b'
}

As you said, most of them can be fixed through free function ( the 
operator overload, the additional math function) and that's what I did 
for some of my code, but the lack of proper constructors and operator= 
(Continue reading)

Picon

Re: [test] Using the Unit Test Framework in Xcode 3 howto

Nice!

Works with Xcode 2.4, too.

On Sun, Jun 1, 2008 at 3:10 AM, Richard Dingwall <rdingwall <at> gmail.com> wrote:
Hi guys,

I've written a short tutorial on getting up and running with the Boost
Unit Test Framework in Xcode 3, including getting the IDE to  parse
test results. You can read it here:
http://richarddingwall.name/2008/06/01/using-the-boost-unit-test-framework-with-xcode-3/

Richard
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Rodolfo Lima | 1 Jun 16:09

[ptr_container] No insert(it, [key, ]value) in associative pointer container?

Hi, I'd like to know why there's no method 'insert' that mimicks stl's 
associative container's insert method that accepts an iterator that 
points to where the value could be placed, and the value?

Regards,
rod
Imran A. Pirwani | 1 Jun 06:17
Picon

Neighborhood of a subgraph

Hi,

I am new to BGL and wanted to find out if there's an easy way to do the 
following in BoostGL:

Given a subset of vertices (specified as a parameter to the function), a 
graph g, how does one query the neighbors of the subset that are not in 
the subset?  Is there a function already written that I can use or an easy 
way to implement the above using simple building-blocks?  I could maybe 
write my own...but I need to be making this query many many times for 
different subgraphs and I'd prefer to not have to check the membership 
within the subset many times over and over again.  Any ideas will be 
greatly appreciated!

Thanks!

-Imran.
Omar Alvi | 1 Jun 14:03
Picon

Having trouble using lapack bindings with boost

Hello People,
 
I am new to boost and I am trying to use use lapack bindings with boost as I need to use svd and some other advanced operations to solve linear systems. I have downloaded boost-bindings-20080501 from http://mathema.tician.de/dl/software/boost-bindings but cant figure out how to compile it on windows using VC8. Could someone please tell me how I can do that ? I saw somewhere that people have compiled it on linux using ./configure, make and make install but I want to compile it on windows.
 
Thanks,
Omar   
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Gmane