N**D 发帖数: 2885 | 1 在中文xp下,怎么好象总是装不了boost呢?难道是unicode没有办法处理?
呵呵,不想重新再装os啦。。太费劲了。。 |
|
vi 发帖数: 309 | 2 Anyone can comment on libraries such as boost and loki?
How widely are they accepted and supported?
How useful are they?
Does any this kind of library worthy time reading?
Thanks! |
|
d***q 发帖数: 1119 | 3 boost库范围大些
里面有些比较实用的东西
loki基本上是 alex的template design patterns的产物
觉得用的人不很多。以前连编译器都很少能支持的 |
|
|
r*********r 发帖数: 3195 | 5 boost::function f;
这句的template argument 的 syntax: bool (int) 看着很怪, 为什么是合法的呢?
这能表示一个 type 吗? |
|
r*********r 发帖数: 3195 | 6 看了. boost 的源码都在那儿. 不过没看出来trick 在哪儿.
有本书上说这是 legal c++, but not all compilers support it.
c++ 有这个 syntax 吗? |
|
r*********r 发帖数: 3195 | 7 有什么好的文档解释variant 设计的吗? 直接看源码好累啊.
读了 andrei alexandrescu 的文章 "an implementation of discriminated unions
in c++"
还比较好懂. 但是 boost 的这个 variant 好像要复杂很多.
btw, 是一定要看懂 mpl 吗? |
|
r*********r 发帖数: 3195 | 8 手头有这本书. 这两个作者还写了篇paper:
the boost c++ metaprogramming library, 30页. 主要的技术都讲了,
比看书更efficient 点.
我现在看code 的方法是, 用 g++ -E 编译一个空的程序(把要看的头文件加进去)
然后看生成的文件, 这样能跳过那些讨厌的宏 |
|
s*****g 发帖数: 323 | 9 It simply doesn't work.
What is the reason?
I was trying to use the thread library. And it seems that this library need
to be compiled. Since I am not using Visual Studio, I need to do it by
myself. tried to compile with bjam and boost.build, it simply doesn't work.
It says " msvc.jam:263: in configure-really *** argument-error * rule path.
make(native) * called with:() *missing argument native
anybody can help me? |
|
y******e 发帖数: 203 | 10 BOOST is used extensively in our project
smart pointer,
foreach
signal
Spirit
regexp
string algorithm
etc... |
|
j****i 发帖数: 305 | 11 Never mind, I got it. Boost serialization is not header-only, it needs to be
built separately.
// |
|
mw 发帖数: 525 | 12 I just checked the website of Boost.Serialization, it seems that the last
update was in 2007.
is this project no longer active?
anyone gives a clue?
ps: how you guys do serialization these days?
thanks a lot in advance |
|
n*c 发帖数: 228 | 13 Hi, I want to pass a boost/lambda expression(as a numerical function) to
another self defined function say a NewtonRaphson routine which takes 2
function (a numerical function and its derivative function) as argument. So
Is it legal to pass the lambda expression(such as using bind or placeholder)
to this userdefined
function?
anyone with experiences with that? |
|
|
d***q 发帖数: 1119 | 15 为什么一定要用新版本?
google earth的boost线程库还是1.32的 |
|
|
p***o 发帖数: 1252 | 17 这个地方自己写个functor也不费事,要是你的code里就这一个地方用到了boost,
接手你code的人肯定要骂死你。 |
|
r*********r 发帖数: 3195 | 18 we switched everything XML to everything JSON,
but property_tree is still very handy.
even though this library is only included in boost a few months ago,
it has been under review for a long time, and is actually quite stable. |
|
d****p 发帖数: 685 | 19 Unfortunately we have to support SunStudio CC which doesn't support tr1...
And we are struggling with messing around boost with various versions of
compilers :-( |
|
r*********r 发帖数: 3195 | 20 可以把要用的模块挖出来,这样就不用装整个boost. 反正很多模块就是一些头文件。 |
|
r*********r 发帖数: 3195 | 21 没试过, 我都是编译安装整个 boost.
不过确实太大了, 很多根本用不到. |
|
d****p 发帖数: 685 | 22 Seems boost does support partial install - the bcp tool is exactly for this
purpose. |
|
Q**g 发帖数: 183 | 23 boost::thread is not copy constructible nor assinable |
|
r******9 发帖数: 129 | 24 解决了
要这样
int main()
{
cWorker w;
boost::thread thrd1(&cWorker::start(), &w);
thrd1.join();
} |
|
w***g 发帖数: 5958 | 25 sourceforge上有一个野鸡threadpool,仿boost风格,挺好用的. |
|
d**t 发帖数: 183 | 26 My guess is that Boost.Thread is faster. It has been added to the new C++
standard. |
|
c*******t 发帖数: 1095 | 27 有用过boost serialization的么? 能不能有啥办法实现用一个变量既表示iarchive,
又表示oarchive?
比如
变量 a,
if (doWrite) {
a 就是 oarchive;
}
else {
a 就是 iarchive;
}
然后对a进行处理。。。
谢谢 |
|
|
EM 发帖数: 715 | 29 多谢指导,我改用boost/interprocess/containers/set,就好用了 |
|
EM 发帖数: 715 | 30 多谢指导,我改用boost/interprocess/containers/set,就好用了 |
|
y**b 发帖数: 10166 | 31 能否说说有什么明显的优点?
另外用Boost开发的东西以后会不会有兼容性的问题?
谢谢。 |
|
y**b 发帖数: 10166 | 32 测试了一下,Boost.MPI还挺厉害,对象、指针、数组、容器等等都能有效传送。
传送一个指针会自动传递指针所指对象的内容(用户定义的数据类型只需添加三行
代码实现serialization),传送一个元素为指针类型的容器会将所有指针指向的
内容进行传送。
下面这段代码传送一个元素类型为指针的容器:
if (world.rank() == 0) { // process 0
std::vector GpsVec;
// fill this GpsVec with pointers
world.send(1, tag, GpsVec); // send to process 1
}
else (world.rank() == 1) { // process 1
std::vector rGpsVec;
world.recv(0, tag, rGpsVec); // receive from process 0
std::vector::iterator it;
for ... 阅读全帖 |
|
H**r 发帖数: 10015 | 33 C++11 committee里一些人是boost的,所以都给弄进去了。。。。
其实我感觉11出来不会立刻有质的变化 |
|
b*******s 发帖数: 5216 | 34 有没有谁遇到过编译问题?似乎是不能推断
我的代码大致是这样:
一个函数返回的是一个enum class的值,就是简单的用BOOST_CHECK_EQUAL
然后编译出错,错误信息不在手边,迟一点发,不过看上去是不能推断某个参数类型
把enum class换成enum就通过了,编译器是gcc 4.8.2, boost原先是1.54,现在升到1
.55依然存在问题 |
|