tinytl-general Mailing List for TTL
Brought to you by:
egladysh
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: dleffingwell <dle...@my...> - 2016-06-21 15:16:11
|
salutations Eugene http://futarisushi.pl/storm.php?capital=zpkvt149yv5s4h dleffingwell |
|
From: Denis N <dz...@gm...> - 2014-12-12 11:09:11
|
Hello, I'm trying to use the ttl signals. But I'm having an issue with the function signature with an empty parameter list. Ex: ex: ttl::sig::signal<void(void)> or ttl::sig::signal<void()> I get errors like error C2091: function returns function Do you know if the functions with no parameters are supported ? Thanks, great library! Denis |
|
From: <ben...@id...> - 2004-05-25 10:41:46
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: E. G. <egl...@ya...> - 2004-01-08 04:19:53
|
TTL v1.1 released New in this release is the tup namespace. Its semantic is very close to boost::tuples. The tup namespace contains following templates: ttl::tup::tuple<> ttl::tup::get<> ttl::tup::length<> ttl::tup::element<> Usage: ttl::tup::tuple<int, double> my_tuple; my_tuple t(1, 2.3); int n = ttl::tup:get<0>(t); double x = ttl::tup:get<1>(t); int l = ttl::tup::length<my_tuple>::value; assert(l==2); ttl::tup::element<N, Tuple>::type is the type of the Nth element in Tuple. II. Bug Fixes Fixed problems with 'const' modifiers in variant. Now if variant is const, the const modifier is propagated to the return types of the var::get<> function. Eugene __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: E. G. <egl...@co...> - 2003-12-10 21:38:07
|
Hi Dave,
boost::function doesn't support member functions directly.
You might want to consider several solutions to this problem.
1.
You could change the function signature to include the object pointer
something like this:
FUNC::function<void (myListener*, event& ev)>
cb(&myListener::member_event_callback);
cb(&listener, event);
Not very nice, because of the need to change the signature.
2.
A much better solution is to use boost::bind or std::bind1st
FUNC::function<void (event& ev)> cb(
std::bind1st( std::mem_fun(&myListener::member_event_callback), &listener )
);
FUNC::function<void (event& ev)> cb(
boost::bind( (&myListener::member_event_callback, &listener, _1 )
);
boost::bind<> is a powerful generalization of std::bind1st/bind2nd/mem_fun
Hope it helps,
Eugene
----- Original Message -----
From: "David Leffingwell" <dle...@ya...>
To: <tin...@li...>
Sent: Wednesday, December 10, 2003 11:51 AM
Subject: [Tinytl-general] function
> Hello Eugene,
>
> I saw your article in CodeProject, and downloaded
> tinytl from SourceForge. I tried it out a bit and it
> looks nice, however, regarding the "function"
> object...
>
> it would be nice if you could use non-static member
> functions in addition to static member functions or
> global functions.
>
> For example:
>
> class myListener
> {
> public:
> static void static_event_callback( event& ev )
> {
> event_visitor v;
> VAR::apply_visitor(v, ev);
> }
>
> void member_event_callback( event& ev )
> {
> event_visitor v;
> VAR::apply_visitor(v, ev);
> }
> };
>
> void global_event_callback( event& ev )
> {
> event_visitor v;
> VAR::apply_visitor(v, ev);
> }
>
> main()
> {
>
> SIG::signal< void (event&) > sig;
>
> // This works
> // FUNC::function<void (event&)>
> cb(global_event_callback);
>
> // This works
> FUNC::function<void (event&)>
> cb(myListener::static_event_callback);
>
> // Something like this would be nice
> // myListener listener;
> // FUNC::function<void (event&)>
> cb(&listener,member_event_callback);
>
> //
> connection con = sig.connect( cb );
>
> // ...
> }
>
> I was under the impression that Boost could do this.
>
> Thanks,
> Dave
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Tinytl-general mailing list
> Tin...@li...
> https://lists.sourceforge.net/lists/listinfo/tinytl-general
|
|
From: David L. <dle...@ya...> - 2003-12-10 19:51:21
|
Hello Eugene,
I saw your article in CodeProject, and downloaded
tinytl from SourceForge. I tried it out a bit and it
looks nice, however, regarding the "function"
object...
it would be nice if you could use non-static member
functions in addition to static member functions or
global functions.
For example:
class myListener
{
public:
static void static_event_callback( event& ev )
{
event_visitor v;
VAR::apply_visitor(v, ev);
}
void member_event_callback( event& ev )
{
event_visitor v;
VAR::apply_visitor(v, ev);
}
};
void global_event_callback( event& ev )
{
event_visitor v;
VAR::apply_visitor(v, ev);
}
main()
{
SIG::signal< void (event&) > sig;
// This works
// FUNC::function<void (event&)>
cb(global_event_callback);
// This works
FUNC::function<void (event&)>
cb(myListener::static_event_callback);
// Something like this would be nice
// myListener listener;
// FUNC::function<void (event&)>
cb(&listener,member_event_callback);
//
connection con = sig.connect( cb );
// ...
}
I was under the impression that Boost could do this.
Thanks,
Dave
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
|
|
From: E. G. <egl...@co...> - 2003-11-25 20:33:28
|
Please ignore |
|
From: E. G. <egl...@ya...> - 2003-11-25 02:20:44
|
Please ignore. Eugene __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |