{"id":114,"date":"2006-02-24T11:38:41","date_gmt":"2006-02-24T16:38:41","guid":{"rendered":"http:\/\/bitpost.com\/news\/2006\/02\/24\/visual-studio-2005-and-boost-compatibility\/"},"modified":"2006-04-07T10:10:54","modified_gmt":"2006-04-07T15:10:54","slug":"visual-studio-2005-and-boost-compatibility","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/","title":{"rendered":"Visual Studio 2005 and boost compatibility"},"content":{"rendered":"<p>I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the <a target=\"_blank\" href=\"http:\/\/boost.org\">boost home page<\/a> was holding me back:<\/p>\n<blockquote><p>Note: Boost does not support the                           non-standard &#8220;Safe&#8221; C++ Library shipping with                           Visual C++ 8.0, which may result in many spurious                           warnings from Boost headers and other                           standards-conforming C++ code. To suppress these                           warnings, define the macro                           <code>_SCL_SECURE_NO_DEPRECATE<\/code>.<\/p><\/blockquote>\n<p><!--more-->Digging further on boost.org&#8230;<\/p>\n<blockquote><p>The implementation of the standard C++ library bundled with   Visual C++ .NET 2005 might issue a number of spurious   warnings <em>feature is deprecated<\/em> when using Boost headers. The   warnings come from the &#8220;Safe&#8221; C++ Library, which labels many   standard C and C++ library constructs as deprecated when in fact   they may be used safely and   correctly. Define <code>_SCL_SECURE_NO_DEPRECATE<\/code> globally to   eliminate these errors. Alternatively, you can enclose all includes   of Boost headers and C++ standard library headers with <code>#pragma       warning(disable:4996)<\/code>, as demonstrated below:<\/p><\/blockquote>\n<blockquote>\n<blockquote>\n<pre>#pragma warning(push)\r\n#pragma warning(disable : 4996)<\/pre>\n<pre>#include\r\n#include\r\n#include\r\n#include\r\n#include<\/pre>\n<pre>#pragma warning(pop)<\/pre>\n<\/blockquote>\n<\/blockquote>\n<p>So it sounds like Microsoft is basically saying &#8220;don&#8217;t use these standard C++ features as we&#8217;ve found them to be unsafe&#8221;.  Fair enough, and it seems fairly harmless if  you can easily disable the warnings.  I&#8217;ve heard that Microsoft has a whole range of features that are illegal for including in any newly submitted code, e.g. all the crappy C string routines &#8211; MAN how much pain have THEY caused over their lifetimes.  Wow, I just agreed with Microsoft.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &#8220;Safe&#8221; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10,2],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","category-chatter"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &quot;Safe&quot; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"m\"\/>\n\t<meta name=\"keywords\" content=\"tricks tips tools,zzz chatter\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"bitpost.com\/news | Note to self\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Visual Studio 2005 and boost compatibility | bitpost.com\/news\" \/>\n\t\t<meta property=\"og:description\" content=\"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &quot;Safe&quot; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2006-02-24T16:38:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2006-04-07T15:10:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Visual Studio 2005 and boost compatibility | bitpost.com\/news\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &quot;Safe&quot; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#article\",\"name\":\"Visual Studio 2005 and boost compatibility | bitpost.com\\\/news\",\"headline\":\"Visual Studio 2005 and boost compatibility\",\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"},\"datePublished\":\"2006-02-24T11:38:41-05:00\",\"dateModified\":\"2006-04-07T10:10:54-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#webpage\"},\"articleSection\":\"Tricks Tips Tools, zzz Chatter\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/chatter\\\/#listItem\",\"name\":\"zzz Chatter\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/chatter\\\/#listItem\",\"position\":2,\"name\":\"zzz Chatter\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/chatter\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#listItem\",\"name\":\"Visual Studio 2005 and boost compatibility\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#listItem\",\"position\":3,\"name\":\"Visual Studio 2005 and boost compatibility\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/chatter\\\/#listItem\",\"name\":\"zzz Chatter\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#webpage\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/\",\"name\":\"Visual Studio 2005 and boost compatibility | bitpost.com\\\/news\",\"description\":\"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard \\\"Safe\\\" C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2006\\\/visual-studio-2005-and-boost-compatibility\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"datePublished\":\"2006-02-24T11:38:41-05:00\",\"dateModified\":\"2006-04-07T10:10:54-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/\",\"name\":\"bitpost.com\\\/news\",\"description\":\"Note to self\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Visual Studio 2005 and boost compatibility | bitpost.com\/news","description":"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard \"Safe\" C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++","canonical_url":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/","robots":"max-image-preview:large","keywords":"tricks tips tools,zzz chatter","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#article","name":"Visual Studio 2005 and boost compatibility | bitpost.com\/news","headline":"Visual Studio 2005 and boost compatibility","author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"},"datePublished":"2006-02-24T11:38:41-05:00","dateModified":"2006-04-07T10:10:54-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#webpage"},"isPartOf":{"@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#webpage"},"articleSection":"Tricks Tips Tools, zzz Chatter"},{"@type":"BreadcrumbList","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","position":1,"name":"Home","item":"https:\/\/bitpost.com\/news","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/chatter\/#listItem","name":"zzz Chatter"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/chatter\/#listItem","position":2,"name":"zzz Chatter","item":"https:\/\/bitpost.com\/news\/category\/chatter\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#listItem","name":"Visual Studio 2005 and boost compatibility"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#listItem","position":3,"name":"Visual Studio 2005 and boost compatibility","previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/chatter\/#listItem","name":"zzz Chatter"}}]},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/#person","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/author\/m\/#author","url":"https:\/\/bitpost.com\/news\/author\/m\/","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"WebPage","@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#webpage","url":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/","name":"Visual Studio 2005 and boost compatibility | bitpost.com\/news","description":"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard \"Safe\" C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/bitpost.com\/news\/#website"},"breadcrumb":{"@id":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/#breadcrumblist"},"author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"creator":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"datePublished":"2006-02-24T11:38:41-05:00","dateModified":"2006-04-07T10:10:54-04:00"},{"@type":"WebSite","@id":"https:\/\/bitpost.com\/news\/#website","url":"https:\/\/bitpost.com\/news\/","name":"bitpost.com\/news","description":"Note to self","inLanguage":"en-US","publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"}}]},"og:locale":"en_US","og:site_name":"bitpost.com\/news | Note to self","og:type":"article","og:title":"Visual Studio 2005 and boost compatibility | bitpost.com\/news","og:description":"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &quot;Safe&quot; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++","og:url":"https:\/\/bitpost.com\/news\/2006\/visual-studio-2005-and-boost-compatibility\/","article:published_time":"2006-02-24T16:38:41+00:00","article:modified_time":"2006-04-07T15:10:54+00:00","twitter:card":"summary","twitter:title":"Visual Studio 2005 and boost compatibility | bitpost.com\/news","twitter:description":"I was hoping to start using Visual Studio 2005 as my primary Windows compiler, but this warning from the boost home page was holding me back: Note: Boost does not support the non-standard &quot;Safe&quot; C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++"},"aioseo_meta_data":{"post_id":"114","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-13 19:53:56","updated":"2025-08-17 18:49:36","seo_analyzer_scan_date":null},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-1Q","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":0,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}