“提升"到什么程度?等同于“非常轻便,使用它"? [英] To which extent is "boost does it" equivalent to "very portable, use it"?

查看:73
本文介绍了“提升"到什么程度?等同于“非常轻便,使用它"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In this answer to a question asking "is doing Z this way portable" the idea is "boost does it this way, it means it is very portable".

我是否可以总是参考Boost源以找到使用C ++进行操作的最可移植的方法?我该如何判断boost是否真的是超级可移植代码的集合?

Can I just always consult boost sources to find the most portable way of doing something in C++? How can I judge for myself if boost is really such a collection of super-portable code?

推荐答案

在某些情况下,Boost库确实存在,因为它们包装了非常不可移植的代码.最明显的例子是文件系统和线程处理.

There are some cases where Boost libraries exist precisely because they wrap very non-portable code. The most obvious examples are the file system and threading stuff.

这的明显标志是大量使用Boost.Config宏.不依赖Boost.Config(或其他非标准的#ifdefs)的Boost代码将具有高度的可移植性.

The telltale sign of this is a large use of Boost.Config macros. Boost code that doesn't depend on Boost.Config (or other non-standard #ifdefs) will be highly portable.

这篇关于“提升"到什么程度?等同于“非常轻便,使用它"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆