问题描述
我正在阅读Andrei Alexandrescu的书。那里提出的想法听起来确实很好,但我想知道 - 真的有很多人使用它吗?或者
这对凡人来说太过深奥了?
干杯
雷
I am reading Andrei Alexandrescu''s book. The ideas presented there sound
really good, but I wonder--is there really a lot of people using it? Or
it''s simply too esoteric for mortals?
Cheers
Ray
推荐答案
我不确定你对Loki究竟是什么意思,但我认为你的意思是
模板元编程的东西(毕竟我在很多真实世界的应用程序中看到了很多
专门的小对象分配器)。
我不再使用Loki(因为Boost(MPL,Tuple,Fusion ......)
提供更好的解决方案。我认为这些对于
库实现者特别有用。但是,创建适当的抽象
_should_对于应用程序开发人员来说也很重要。
我说,我同意,对于今天使用C ++的许多程序员来说,
模板元编程技术太复杂了 -
有时我觉得连指针都是......哦......好吧......
I''m not sure what exactly you mean with Loki, but I take it you mean
the Template Metaprogramming stuff (after all I have seen many
specialized small object allocators in a lot of real-world apps).
I don''t use Loki (anymore) because Boost (MPL, Tuple, Fusion ...)
provides better solutions. I think these are especially useful for
library implementers. But then, creating the appropriate abstraction
_should_ be important for application developers, too.
That said, I agree, for many programmers using C++ today,
template metaprogramming techniques are too complicated --
sometimes I think even pointers are... oh well ...
-hg
实际上,Boost早于Loki几年。在Loki中举例说明的一些技术可能会被认为是Boost的一些较新的部分的前辈,但那里确实没有父母/子女关系。
-cd
Actually, Boost predates Loki by several years. Some of the techniques
exemplified in Loki could eb considered predecessors to some of the newer
parts of Boost, but there''s really not a parent/child relationshop there.
-cd
这篇关于有人在这里使用Loki吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!