Am 04.10.2013 19:20, schrieb Olaf Radicke:
> Hi Tommi!
>
>> Tommi Mäkitalo <[email protected]> hat am 4. Oktober 2013 um 18:39 
>> geschrieben:
>> Why not just use constants?
>>
>> In a include:
>>
>>       namespace url
>>       {
>>            static const char SwitchToHandheldVersion[] =
>>       "/SwitchToHandheldVersion";
>>            static const char RSSfeedView[] = "/rss.xml";
>>            ...
>>       }
>>
>> Then in the ecpp:
>>
>> |     <a href="<$ url::SwitchToHandheldVersion $>">|
>>
>> If you want to change the url, just change it in the header and
>> recompile. It is much less overhead and not need for a lookup table.
> Yes, that is a very good idea. That is the better way. Thanks for
> you feedback.
>
> Gratings,
>
> Olaf
Sometimes it is just too hard to think simple. It helps, when someone 
else looks at the problems. He may have better ideas.

Thank you for asking:-) .


Tommi

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to