{"id":2444,"date":"2018-06-20T21:49:59","date_gmt":"2018-06-20T12:49:59","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2444"},"modified":"2018-06-20T21:49:59","modified_gmt":"2018-06-20T12:49:59","slug":"cpp-error-more-than-one-instance-of-overloaded-function-abs-matches-the-argument-list","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2444","title":{"rendered":"[CPP] error: more than one instance of overloaded function &#8220;abs&#8221; matches the argument list"},"content":{"rendered":"<p>C++\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u304a\u3044\u3066abs\u95a2\u6570\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u901a\u77e5\u306e\u4f8b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >more than one instance of overloaded function \"abs\" matches the  xxx.c 100\r\nargument list: \r\n            function \"__nounwind abs(double)\" \r\n            function \"__nounwind abs(float)\" \r\n            function \"__nounwind abs(long double)\" \r\n            argument types are: (int)<\/pre>\n<p><!--more--><\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>C++\u306eabs\u95a2\u6570\u306f\u5f15\u6570\u306e\u578b\u306b\u3088\u308a\u591a\u91cd\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u305f\u3081<\/p>\n<h2>\u578b\u306b\u3088\u308b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u306e\u9055\u3044<\/h3>\n<h3>\u6574\u6570\u578b<\/h3>\n<pre class=\"lang:c++ decode:true \" >#include &lt;cstdlib&gt;<\/pre>\n<h3>\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b<\/h3>\n<pre class=\"lang:c++ decode:true \" >#include &lt;cmath&gt;<\/pre>\n<h3>\u8907\u7d20\u6570\u578b<\/h3>\n<pre class=\"lang:c++ decode:true \" >#include &lt;complex&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>C++\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u304a\u3044\u3066abs\u95a2\u6570\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002 \u30a8\u30e9\u30fc\u901a\u77e5\u306e\u4f8b more than one instance of overloaded function &#8220;abs&#8221; matches the xxx.c 10 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[84],"class_list":["post-2444","post","type-post","status-publish","format-standard","hentry","category-memo","tag-cpp"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2444"}],"version-history":[{"count":2,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2444\/revisions"}],"predecessor-version":[{"id":2446,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2444\/revisions\/2446"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}