VS 2013将无法识别二进制文字 [英] VS 2013 won't recognize binary literals

查看:258
本文介绍了VS 2013将无法识别二进制文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将二进制文字分配给数据类型(在boost multiprecision库中)。


 mp :: cpp_int n = 0b01101110000111100000000000110; 

在第一个'0'之后出现红色squigly。是否有可以处理二进制文字的扩展名?

解决方案

2016年11月3日12: 52 PM,-BM-写道:


我正在尝试将二进制文字分配给数据类型(在boost multiprecision库中)。



 mp :: cpp_int n = 0b01101110000111100000000000110; 



在第一个'0'之后出现红色边框。是否有一个处理二进制文字的扩展名?


该扩展名为VS2015,我怀疑。


<名称="x_x_2e1ec7c2-a314-4330-a398-a2373df351df_CommunityBridge"title ="Mozilla / 5.0(Windows NT 10.0; WOW64; rv:45.0)Gecko / 20100101Thunderbird / 45.4.0通过社区论坛NNTP服务器1.1.55.0">

I'm trying to assign a binary literal to a datatype (in the boost multiprecision library).

mp::cpp_int n = 0b01101110000111100000000000110;

The red squigly appears after the first '0'. Is there an extension that does handle binary literals?

解决方案

On 11/3/2016 12:52 PM, -B-M- wrote:

I'm trying to assign a binary literal to a datatype (in the boost multiprecision library).

mp::cpp_int n = 0b01101110000111100000000000110;


The red squigly appears after the first '0'. Is there an extension that does handle binary literals?

That extension is called VS2015, I would suspect.


这篇关于VS 2013将无法识别二进制文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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