result-int-int-2.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* clang-format off
  2. (use of deleted function|call to deleted constructor|attempting to reference a deleted function)
  3. clang-format on
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License in the accompanying file
  7. Licence.txt or at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. Distributed under the Boost Software License, Version 1.0.
  15. (See accompanying file Licence.txt or copy at
  16. http://www.boost.org/LICENSE_1_0.txt)
  17. */
  18. #include "../../include/boost/outcome/result.hpp"
  19. int main()
  20. {
  21. using namespace BOOST_OUTCOME_V2_NAMESPACE;
  22. // Must not be possible to initialise a result with same R and S types
  23. result<int, int> m(in_place_type<int>);
  24. return 0;
  25. }