Boost logo

Boost-Build :

From: Jeff Holle (jeff.holle_at_[hidden])
Date: 2004-08-22 12:41:14


I've answered my own question.
The Compare functor that does the trick is:
struct ltExternalEdge : public
std::binary_function<ExternalEdge,ExternalEdge, bool> {
bool operator()(const ExternalEdge& __x, const ExternalEdge& __y) const
{
return (__x.first < __y.first || (!(__y.first < __x.first) &&
__x.second.get_property() < __y.second.get_property())) ? true : false;
}
};

It would be really nice if the object that edge_iterator references
implemenented a operator< method.
Then it would work seamlessly with the std::pair operator< method, which
I pretty much copied in the above code.

Jeff Holle wrote:

> I'm using Boost.Jam Version 3.1.9. OS=LINUX.
> I'm developing a library with a lot of different test programs.
> These test programs are placed in subdirectories of the directory where
> this library is built (via bjam).
>
> The problem that I'm having is these test program Jamfiles don't know
> that the library under developement is a dependency.
>
> A typical Jamfile for these test programs is:
> exe test
> : # sources
> test.cpp
> : # requirements
> <sysinclude>$BOOST_ROOT
> <include>..
> <find-library>layout
> <debug><library-path>../liblayout.a/gcc/debug/inlining-on
> <release><library-path>../liblayout.a/gcc/release/inlining-on
> <find-library>bgl-viz
>
> <debug><library-path>$(BOOST_ROOT)/bin/boost/libs/graph/build/libbgl-viz.a/gcc/debug/inlining-on
>
> <release><library-path>$(BOOST_ROOT)/bin/boost/libs/graph/build/libbgl-viz.a/gcc/release/inlining-on
> : release debug
>
> Could somebody please tell me how to express the liblayout.a file as a
> dependency?
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> <http://us.ard.yahoo.com/SIG=129mhc9v6/M=295196.4901138.6071305.3001176/D=groups/S=1707281907:HM/EXP=1093217205/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
>
>
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/jamboost/
>
> * To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
> <mailto:jamboost-unsubscribe_at_[hidden]?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk