|
Boost : |
Subject: Re: [boost] [flyweight] key value with objects not constructible from a key
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-12 21:27:11
Michael Marcin wrote:
> If texture has to be constructible from key then texture has to have
> direct access to file and image loading functionality. I can't pass any
> information other than the key to the construction site without
> resorting to singletons.
What's the problem with making your image loaders singletons? As far as
I can think, they're the perfect candidates.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk