由买买提看人间百态

topics

全部话题 - 话题: boost
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
N**D
发帖数: 2885
1
来自主题: Programming版 - 有熟悉boost的同学么?
在中文xp下,怎么好象总是装不了boost呢?难道是unicode没有办法处理?
呵呵,不想重新再装os啦。。太费劲了。。
vi
发帖数: 309
2
来自主题: Programming版 - boost and loki
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
来自主题: Programming版 - boost and loki
boost库范围大些
里面有些比较实用的东西
loki基本上是 alex的template design patterns的产物
觉得用的人不很多。以前连编译器都很少能支持的
h****e
发帖数: 2125
4
来自主题: Programming版 - why no tree in stl and boost?
ask on boost mail list.
r*********r
发帖数: 3195
5
来自主题: Programming版 - boost::function 的 syntax 问题
boost::function f;
这句的template argument 的 syntax: bool (int) 看着很怪, 为什么是合法的呢?
这能表示一个 type 吗?
r*********r
发帖数: 3195
6
来自主题: Programming版 - boost::function 的 syntax 问题
看了. boost 的源码都在那儿. 不过没看出来trick 在哪儿.
有本书上说这是 legal c++, but not all compilers support it.
c++ 有这个 syntax 吗?
r*********r
发帖数: 3195
7
来自主题: Programming版 - boost::variant 的问题
有什么好的文档解释variant 设计的吗? 直接看源码好累啊.
读了 andrei alexandrescu 的文章 "an implementation of discriminated unions
in c++"
还比较好懂. 但是 boost 的这个 variant 好像要复杂很多.
btw, 是一定要看懂 mpl 吗?
r*********r
发帖数: 3195
8
来自主题: Programming版 - boost::variant 的问题
手头有这本书. 这两个作者还写了篇paper:
the boost c++ metaprogramming library, 30页. 主要的技术都讲了,
比看书更efficient 点.
我现在看code 的方法是, 用 g++ -E 编译一个空的程序(把要看的头文件加进去)
然后看生成的文件, 这样能跳过那些讨厌的宏
s*****g
发帖数: 323
9
来自主题: Programming版 - spent a lot of time try to compile boost
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
来自主题: Programming版 - 这里的人用BOOST都是用来做什么?
BOOST is used extensively in our project
smart pointer,
foreach
signal
Spirit
regexp
string algorithm
etc...
j****i
发帖数: 305
11
来自主题: Programming版 - Help to compile boost serialization
Never mind, I got it. Boost serialization is not header-only, it needs to be
built separately.

//
mw
发帖数: 525
12
来自主题: Programming版 - Boost.Serialization no longer maintained?
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
来自主题: Programming版 - A question about Boost/lambda
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?
p*u
发帖数: 2454
14
自己去boost的mailist问不就得了。
d***q
发帖数: 1119
15
来自主题: Programming版 - boost更新太快了
为什么一定要用新版本?
google earth的boost线程库还是1.32的
d*******h
发帖数: 642
16
来自主题: Programming版 - 请教一个boost::bind的问题
class A
{
double d_x1, d_x2;
vector vec;
bool Compare(double x1, double x2) const { return (d_x1==x1 && d_x2==x2);}
public:
A* Find(double x1, double x2) const
{
vector::iterator itor;
itor = find_if(vec.begin(), vec.end(), boost::bind(&A::Compare, _1, _2)(x1, x2)); // 这里编译不通过
return (*itor);
}
};
我想在Find函数里面实现的是:
for(vector::iterator itor=vec.begin();itor!=vec.end();++itor)
{
if ((*itor)->Compare(double x1, double x2))
{
p***o
发帖数: 1252
17
来自主题: Programming版 - 请教一个boost::bind的问题
这个地方自己写个functor也不费事,要是你的code里就这一个地方用到了boost,
接手你code的人肯定要骂死你。
r*********r
发帖数: 3195
18
来自主题: Programming版 - 有人用 boost::property_tree 吗?
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
来自主题: Programming版 - boost::proto 太爽了
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
来自主题: Programming版 - boost::proto 太爽了
可以把要用的模块挖出来,这样就不用装整个boost. 反正很多模块就是一些头文件。
r*********r
发帖数: 3195
21
来自主题: Programming版 - boost::proto 太爽了
没试过, 我都是编译安装整个 boost.
不过确实太大了, 很多根本用不到.
d****p
发帖数: 685
22
来自主题: Programming版 - boost::proto 太爽了
Seems boost does support partial install - the bcp tool is exactly for this
purpose.
Q**g
发帖数: 183
23
来自主题: Programming版 - boost::thread弱文
boost::thread is not copy constructible nor assinable
r******9
发帖数: 129
24
来自主题: Programming版 - boost.thread 问题
解决了
要这样
int main()
{
cWorker w;
boost::thread thrd1(&cWorker::start(), &w);
thrd1.join();
}
w***g
发帖数: 5958
25
来自主题: Programming版 - Boost中有什么方便的thread pool的class
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
来自主题: Programming版 - boost serialization的问题
有用过boost serialization的么? 能不能有啥办法实现用一个变量既表示iarchive,
又表示oarchive?
比如
变量 a,
if (doWrite) {
a 就是 oarchive;
}
else {
a 就是 iarchive;
}
然后对a进行处理。。。
谢谢
X*4
发帖数: 101
28
有用过autoconf archive 经验的吗
查了http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros
没有对应 BOOST_MATH的宏
求教,改怎么用 Autoconf 配置 boost math呢
每次手动输一长串编译选项,太麻烦啦
EM
发帖数: 715
29
来自主题: Programming版 - [C++ boost::interprocess] 讨论贴
多谢指导,我改用boost/interprocess/containers/set,就好用了
EM
发帖数: 715
30
来自主题: Programming版 - [C++ boost::interprocess] 讨论贴
多谢指导,我改用boost/interprocess/containers/set,就好用了
y**b
发帖数: 10166
31
来自主题: Programming版 - 有人用Boost.MPI吗?
能否说说有什么明显的优点?
另外用Boost开发的东西以后会不会有兼容性的问题?
谢谢。
y**b
发帖数: 10166
32
来自主题: Programming版 - 有人用Boost.MPI吗?
测试了一下,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
来自主题: Programming版 - boost::test和enum class
有没有谁遇到过编译问题?似乎是不能推断
我的代码大致是这样:
一个函数返回的是一个enum class的值,就是简单的用BOOST_CHECK_EQUAL
然后编译出错,错误信息不在手边,迟一点发,不过看上去是不能推断某个参数类型
把enum class换成enum就通过了,编译器是gcc 4.8.2, boost原先是1.54,现在升到1
.55依然存在问题
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)