2014-02-05T00:23:56 *** smiley1983 has quit IRC (Ping timeout: 245 seconds) 2014-02-05T00:34:22 *** amstan has quit IRC (Quit: Konversation terminated!) 2014-02-05T00:49:26 *** heinrich5991 has quit IRC (Ping timeout: 252 seconds) 2014-02-05T00:51:57 *** heinrich5991 has joined #aichallenge 2014-02-05T03:21:30 *** thestinger has quit IRC (Quit: sleep) 2014-02-05T03:28:33 *** smiley1983 has joined #aichallenge 2014-02-05T06:59:15 *** yorick has joined #aichallenge 2014-02-05T08:39:43 *** foRei has joined #aichallenge 2014-02-05T10:16:22 *** btiberi has joined #aichallenge 2014-02-05T10:16:37 *** RagingDave has joined #aichallenge 2014-02-05T10:33:52 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T10:53:53 *** RagingDave has quit IRC (Quit: Ex-Chat) 2014-02-05T10:58:19 *** btiberi has joined #aichallenge 2014-02-05T10:59:47 *** btiberi has quit IRC (Client Quit) 2014-02-05T11:06:26 *** smiley1983 has quit IRC (Ping timeout: 245 seconds) 2014-02-05T11:10:43 *** btiberi has joined #aichallenge 2014-02-05T11:15:39 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T11:35:44 *** btiberi has joined #aichallenge 2014-02-05T12:08:09 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T12:11:11 *** btiberi has joined #aichallenge 2014-02-05T13:09:50 *** jmcarthur has quit IRC (Ping timeout: 264 seconds) 2014-02-05T13:43:57 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T13:55:49 *** thestinger has joined #aichallenge 2014-02-05T13:56:23 *** Scooper has joined #aichallenge 2014-02-05T15:11:55 *** btiberi has joined #aichallenge 2014-02-05T15:16:44 *** btiberi has quit IRC (Client Quit) 2014-02-05T15:31:32 *** btiberi has joined #aichallenge 2014-02-05T15:52:45 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T16:23:17 *** btiberi has joined #aichallenge 2014-02-05T16:55:08 *** coeus has joined #aichallenge 2014-02-05T17:28:01 *** jmcarthur has joined #aichallenge 2014-02-05T17:46:05 *** mcstar has joined #aichallenge 2014-02-05T17:46:33 thestinger: hey! are you up for a cpp question? 2014-02-05T17:46:39 mcstar: sure :P 2014-02-05T17:47:00 is it possible to specialize a typedef that is in a templated class? 2014-02-05T17:47:29 i just want to get rid of a separate class that hold only a typedef, and is specialized for each case 2014-02-05T17:47:44 i just want one class, where id be using the type 2014-02-05T17:49:26 template class TypeHolder{}; template <> class TypeHolder{typedef char Type;} template <> class TypeHolder{typedef int Type}; 2014-02-05T17:49:39 the actual types names dont matter, it is just an example 2014-02-05T17:49:46 so, id be using the above in another type 2014-02-05T17:49:54 can i get rid of the above? 2014-02-05T17:50:54 i'd be using it like this: template class Other{ TypeHolder::Type some_functio_for_instance(); } 2014-02-05T17:53:17 thestinger: so? 2014-02-05T17:53:43 im not sure if the c++11 templated alias would help 2014-02-05T17:54:00 google failed me too 2014-02-05T17:55:35 erm.. i meant to write: so, id be using the above in another class 2014-02-05T17:57:03 mcstar: you will have to add public: to TypeHolder and use typename TypeHolder::Type in Other for it to work 2014-02-05T17:57:26 hi mceier 2014-02-05T17:57:32 hi mcstar ;) 2014-02-05T17:57:46 TypeHolder and TypeHolder 2014-02-05T17:58:18 typedef typename TypeHolder::THComplex ComplexType; 2014-02-05T17:58:22 this actually is working 2014-02-05T17:58:27 yeah 2014-02-05T17:58:34 but i want to get rid of TyepHolder altogether 2014-02-05T17:59:08 i just want to specialize Other, in a way, to directly use ::Type 2014-02-05T18:01:04 mcstar: you mean typename T::Type ? 2014-02-05T18:01:57 no, TypeHolder::Type, which if TypeHolder wouldnt exist, would be defined in Other, thats why the ::, but that is just pseudocode 2014-02-05T18:03:42 so, do i need this extra class, to provide the template type -> custom type mapping, or can i do it directly, in the class, where i'd be using the custom type anyway 2014-02-05T18:04:40 mceier: https://github.com/liquid-phynix/gamma/blob/master/arrays.hpp thats the code i want to refactor 2014-02-05T18:04:47 top part 2014-02-05T18:08:46 mcstar: sorry, had to go for a sec 2014-02-05T18:08:55 k 2014-02-05T18:09:03 * thestinger reads 2014-02-05T18:09:08 mcstar: you can do something like this instead: class ArrayImpl { /* ... */ }; template class Array; template<> Array : public ArrayImpl {}; 2014-02-05T18:09:22 but I don't know if this is anyway better... 2014-02-05T18:10:08 i see 2014-02-05T18:11:04 i just want to know if im missing a language feature, or something obvious 2014-02-05T18:11:16 it is not a tragedy if it cant be done the way i'd like 2014-02-05T18:12:12 mcstar: well you can use 'using' instead of typedefs but I don't know if you can specialize them or anything 2014-02-05T18:12:55 afaik, 'using' only provides templated typedefs, thats all 2014-02-05T18:13:03 typedefs, with free type parameters 2014-02-05T18:15:29 well, thanks guys, ive got to sleep, bb 2014-02-05T18:15:36 *** mcstar has quit IRC () 2014-02-05T18:21:11 *** Chris_0076 has quit IRC (Ping timeout: 246 seconds) 2014-02-05T18:21:16 *** chris__0076 has joined #aichallenge 2014-02-05T18:30:40 *** thestinger has quit IRC (Quit: WeeChat 0.4.2) 2014-02-05T18:45:41 *** amstan has joined #aichallenge 2014-02-05T18:45:41 *** ChanServ sets mode: +o amstan 2014-02-05T19:00:35 *** Scooper has quit IRC (Quit: Leaving) 2014-02-05T19:52:21 *** amstan has quit IRC (Quit: Konversation terminated!) 2014-02-05T20:14:21 *** btiberi has quit IRC (Quit: This computer has gone to sleep) 2014-02-05T20:21:55 *** yorick has quit IRC (Read error: Connection reset by peer) 2014-02-05T20:46:08 *** thestinger has joined #aichallenge 2014-02-05T21:02:16 *** Accoun has quit IRC (Read error: Connection reset by peer) 2014-02-05T21:08:27 *** Accoun has joined #aichallenge 2014-02-05T21:40:46 *** thestinger has quit IRC (Quit: WeeChat 0.4.2) 2014-02-05T21:41:03 *** thestinger has joined #aichallenge 2014-02-05T21:53:18 *** btiberi has joined #aichallenge 2014-02-05T22:57:01 *** roide has joined #aichallenge 2014-02-05T22:59:53 *** chris___0076 has joined #aichallenge 2014-02-05T23:00:59 *** foRei has quit IRC (Quit: Bye) 2014-02-05T23:02:09 *** chris__0076 has quit IRC (Ping timeout: 245 seconds)