From: Mike E. <mel...@gm...> - 2006-08-09 06:24:23
|
Hello, I am very interested in using Adobe's ASL. I am working on a personal project for stock market graphing, prediction, etc. ASL suits my needs because I've been using boost for about a year and I'm also trying to learn more about templates. I am relatively new to advanced Template development and am having some difficulty compiling ASL on a non-supported compiler (Codewarrior 9.2 for Windows, 9.4 patch installed). I only have one problem remaining (most of the code compilies with a few simple changes) and that is in image_factory.cpp I won't go into detail of all the various attempts I've tried over the last several days to get this code to compile. I've looked at other classes to see how regular_object/regular_interface work and I am still struggling (it's a good exercise in learning some of the new template paradigms) to figure out what's preventing the code from compiling. If any of you ASL/STL gurus can help, I'd really appreciate it. I have no trouble with any other factory classes (checkbox, presets, reveal, popup) compiling. The error output I get from the compiler (formatted for easier viewing...) is: Error : illegal implicit conversion from '__T?' to ' adobe::regular_interface< adobe::gil::image_format_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > >::protocol > * ' (point of instantiation: '@unnamed@image_factory_cpp@::gil_image_factory()') (instantiating: ' adobe::gil::image_format_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > >::image_format_t< adobe::gil::targa_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > > > ( adobe::name_t, const adobe::gil::targa_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > > & ) ' ) (instantiating: ' adobe::regular_object< adobe::gil::image_format_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > >::protocol, adobe::gil::image_format_t::instance >::regular_object< adobe::gil::targa_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > > > ( const adobe::gil::targa_t< adobe::gil::image_view< adobe::gil::pixel_2d_locator< adobe::gil::pixel_step_iterator< adobe::gil::pixel< unsigned char, adobe::gil::rgba_t > *> > > > & ) ' ) regular_object.hpp line 108 interface_m(new implementation::regular_instance<D<T> >(x)) Thanks in advance! (Yes, I will eventually switch to VC8) Mike |